pass in the build ID and urls map to embedded browsers
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 21 Apr 2009 16:01:03 +0000 (16:01 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 21 Apr 2009 16:01:03 +0000 (16:01 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@12940 dcc99617-32d9-48b4-a31d-7c20da2025e4

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

index bf939d1..87b937d 100644 (file)
@@ -118,10 +118,12 @@ util.browser.prototype = {
                        netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
                        var cw = this.get_content();
                        cw.IAMXUL = true;
+            cw.XUL_BUILD_ID = '/xul/server/'.split(/\//)[2];
                        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;
+            cw.xulG.urls = window.urls;
                        try { s += ('******** cw = ' + cw + ' cw.xulG = ' + (cw.xulG) + '\n'); } catch(E) { s+=E + '\n'; }
                        obj.error.sdump('D_BROWSER',s);
                } catch(E) {