From: erickson Date: Thu, 21 May 2009 13:17:47 +0000 (+0000) Subject: added newTab function (wrapper) for opening a xul tab X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=d02d860c02d2a489988f1bd8671fb4594458f6e9;p=Evergreen.git added newTab function (wrapper) for opening a xul tab git-svn-id: svn://svn.open-ils.org/ILS/trunk@13213 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/web/js/dojo/openils/XUL.js b/Open-ILS/web/js/dojo/openils/XUL.js index fa3e5f1d1c..c9cde521cb 100644 --- a/Open-ILS/web/js/dojo/openils/XUL.js +++ b/Open-ILS/web/js/dojo/openils/XUL.js @@ -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