From c05e546fb71b2f6ab0b9a32e5f332c47039afa1a Mon Sep 17 00:00:00 2001 From: phasefx Date: Sun, 25 May 2008 05:13:56 +0000 Subject: [PATCH] Patch from Bill Ott for a New Window button on the login window. Thanks! git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_2_2@9694 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/xul/staff_client/chrome/content/main/main.js | 19 +++++++++++++++++++ .../xul/staff_client/chrome/content/main/main.xul | 3 +++ 2 files changed, 22 insertions(+) diff --git a/Open-ILS/xul/staff_client/chrome/content/main/main.js b/Open-ILS/xul/staff_client/chrome/content/main/main.js index eec3f72ef9..b17c2152b7 100644 --- a/Open-ILS/xul/staff_client/chrome/content/main/main.js +++ b/Open-ILS/xul/staff_client/chrome/content/main/main.js @@ -240,6 +240,25 @@ function main_init() { }, false ); + + var y = document.getElementById('new_window_btn'); + y.setAttribute('label','Open New Window'); + y.addEventListener( + 'command', + function() { + if (G.data.session) { + try { + G.window.open('chrome://open_ils_staff_client/content/main/menu_frame.xul?server=' + + G.data.server,'main','chrome,resizable' ); + + } catch(E) { alert(E); } + } else { + alert ('Please login first!') + } + }, + false + ); + if ( found_ws_info_in_Achrome() ) { //var hbox = x.parentNode; var b = document.createElement('button'); //b.setAttribute('label','Migrate legacy settings'); hbox.appendChild(b); diff --git a/Open-ILS/xul/staff_client/chrome/content/main/main.xul b/Open-ILS/xul/staff_client/chrome/content/main/main.xul index b316fddbb8..f3fc59d506 100644 --- a/Open-ILS/xul/staff_client/chrome/content/main/main.xul +++ b/Open-ILS/xul/staff_client/chrome/content/main/main.xul @@ -83,6 +83,9 @@