pass a chrome powered xulG from main.js through data.xul to menu_frame.xul; I'm going...
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 26 Jan 2009 04:03:59 +0000 (04:03 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 26 Jan 2009 04:03:59 +0000 (04:03 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/branches/staff-client-experiment@11960 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/main/data.xul

index 7092b69..fc2919e 100644 (file)
 
                     document.getElementById('caption').setAttribute('label', document.getElementById('commonStrings').getString('staff.main.data.loaded'));
 
-                    xulG.window.open(urls.XUL_MENU_FRAME
+                               netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
+                    var mframe = xulG.window.open(urls.XUL_MENU_FRAME
                         + '?server='+window.escape(xulG.url),
                         'main'+xulG.window.window_name_increment(),'chrome,resizable'
                     );
+                    mframe.xulG = xulG; // This is the xulG from main.js, with auth, url, and window
 
                 } catch(E) {
                     alert(E);