From c6bae40beaed8d106e2b55afbb472e38c552fa41 Mon Sep 17 00:00:00 2001 From: phasefx Date: Wed, 2 Nov 2005 05:30:54 +0000 Subject: [PATCH] a G remnant git-svn-id: svn://svn.open-ils.org/ILS/trunk@1942 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- .../chrome/content/evergreen/auth/controller.js | 9 ++++++--- .../chrome/content/evergreen/auth/session.js | 4 ++-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/Open-ILS/xul/staff_client/chrome/content/evergreen/auth/controller.js b/Open-ILS/xul/staff_client/chrome/content/evergreen/auth/controller.js index 94009bb0da..290a5e3013 100644 --- a/Open-ILS/xul/staff_client/chrome/content/evergreen/auth/controller.js +++ b/Open-ILS/xul/staff_client/chrome/content/evergreen/auth/controller.js @@ -125,9 +125,12 @@ auth.controller.prototype = { this.error.sdump('D_AUTH','close' + this.w + '\n'); this.logoff(); - for (var w in this.G.window.appshell_list) { - this.G.window.appshell_list[w].close(); - } + //Basically, we want to close all the windows for this application (and in case we're running this as + //a firefox extension, we don't want to merely shutdown mozilla). I'll probably create an XPCOM for + //tracking the windows. + //for (var w in this.G.window.appshell_list) { + // this.G.window.appshell_list[w].close(); + //} this.w.close(); /* Probably won't go any further */ if (typeof this.on_close == 'function') { diff --git a/Open-ILS/xul/staff_client/chrome/content/evergreen/auth/session.js b/Open-ILS/xul/staff_client/chrome/content/evergreen/auth/session.js index d383a15ee8..c5ca1a29fa 100644 --- a/Open-ILS/xul/staff_client/chrome/content/evergreen/auth/session.js +++ b/Open-ILS/xul/staff_client/chrome/content/evergreen/auth/session.js @@ -82,9 +82,9 @@ auth.session.prototype = { 'close' : function () { this.error.sdump('D_AUTH','auth.session.close()\n'); this.key = null; - if (typeof this.G.on_close == 'function') { + if (typeof this.on_close == 'function') { this.error.sdump('D_AUTH','auth.session.on_close()\n'); - this.G.on_close(); + this.on_close(); } } -- 2.43.2