[open-ils-commits] r13213 - trunk/Open-ILS/web/js/dojo/openils (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu May 21 09:17:48 EDT 2009
Author: erickson
Date: 2009-05-21 09:17:47 -0400 (Thu, 21 May 2009)
New Revision: 13213
Modified:
trunk/Open-ILS/web/js/dojo/openils/XUL.js
Log:
added newTab function (wrapper) for opening a xul tab
Modified: trunk/Open-ILS/web/js/dojo/openils/XUL.js
===================================================================
--- trunk/Open-ILS/web/js/dojo/openils/XUL.js 2009-05-20 21:26:37 UTC (rev 13212)
+++ trunk/Open-ILS/web/js/dojo/openils/XUL.js 2009-05-21 13:17:47 UTC (rev 13213)
@@ -27,6 +27,12 @@
return {};
}
+ openils.XUL.newTab = function(path, tabInfo, options) {
+ if(xulG == undefined)
+ throw new Error('xulG is not defined. Cannot open tab');
+ xulG.new_tab(path, tabInfo, options);
+ }
+
/**
* This can be used by privileged Firefox in addition to XUL.
* To use use in Firefox directly, set signed.applets.codebase_principal_support to true in about:config
More information about the open-ils-commits
mailing list