From: phasefx Date: Mon, 26 Jan 2009 04:03:59 +0000 (+0000) Subject: pass a chrome powered xulG from main.js through data.xul to menu_frame.xul; I'm going... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=f3af02fb5d5c92d91cd80fb44443c15a1ca4a5e2;p=Evergreen.git 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 git-svn-id: svn://svn.open-ils.org/ILS/branches/staff-client-experiment@11960 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/server/main/data.xul b/Open-ILS/xul/staff_client/server/main/data.xul index 7092b69d1b..fc2919ee67 100644 --- a/Open-ILS/xul/staff_client/server/main/data.xul +++ b/Open-ILS/xul/staff_client/server/main/data.xul @@ -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);