added newTab function (wrapper) for opening a xul tab
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 21 May 2009 13:17:47 +0000 (13:17 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 21 May 2009 13:17:47 +0000 (13:17 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@13213 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/js/dojo/openils/XUL.js

index fa3e5f1..c9cde52 100644 (file)
@@ -27,6 +27,12 @@ if(!dojo._hasResource["openils.XUL"]) {
         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