[open-ils-commits] r11960 - branches/staff-client-experiment/Open-ILS/xul/staff_client/server/main

svn at svn.open-ils.org svn at svn.open-ils.org
Sun Jan 25 23:04:01 EST 2009


Author: phasefx
Date: 2009-01-25 23:03:59 -0500 (Sun, 25 Jan 2009)
New Revision: 11960

Modified:
   branches/staff-client-experiment/Open-ILS/xul/staff_client/server/main/data.xul
Log:
pass a chrome powered xulG from main.js through data.xul to menu_frame.xul; I'm going to try to move the menu system from chrome to remote and want this in case I still have to open any chrome windows

Modified: branches/staff-client-experiment/Open-ILS/xul/staff_client/server/main/data.xul
===================================================================
--- branches/staff-client-experiment/Open-ILS/xul/staff_client/server/main/data.xul	2009-01-26 03:57:48 UTC (rev 11959)
+++ branches/staff-client-experiment/Open-ILS/xul/staff_client/server/main/data.xul	2009-01-26 04:03:59 UTC (rev 11960)
@@ -220,10 +220,12 @@
 
                     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);



More information about the open-ils-commits mailing list