let the passthru xulG have some basic menu frame functions
authorpines <pines@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 3 Sep 2006 01:11:57 +0000 (01:11 +0000)
committerpines <pines@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 3 Sep 2006 01:11:57 +0000 (01:11 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@5874 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/chrome/content/util/browser.js

index 9644b3e..4df7cb5 100644 (file)
@@ -118,7 +118,10 @@ util.browser.prototype = {
                        netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
                        var cw = this.get_content();
                        cw.IAMXUL = true;
-                       cw.xulG = obj.passthru_content_params;
+                       cw.xulG = obj.passthru_content_params || {};
+                       cw.xulG.set_tab = window.xulG.set_tab;
+                       cw.xulG.new_tab = window.xulG.new_tab;
+                       cw.xulG.url_prefix = window.xulG.url_prefix;
                        try { s += ('******** cw = ' + cw + ' cw.xulG = ' + js2JSON(cw.xulG) + '\n'); } catch(E) { s+=E + '\n'; }
                        obj.error.sdump('D_BROWSER',s);
                } catch(E) {