From dce247d261a6fb4621d1c83aee6437eb4038166e Mon Sep 17 00:00:00 2001 From: phasefx Date: Fri, 4 Nov 2005 19:40:04 +0000 Subject: [PATCH] test git-svn-id: svn://svn.open-ils.org/ILS/trunk@1954 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- .../staff_client/chrome/content/evergreen/main/window.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Open-ILS/xul/staff_client/chrome/content/evergreen/main/window.js b/Open-ILS/xul/staff_client/chrome/content/evergreen/main/window.js index 34fd48f7b4..6d03859eea 100644 --- a/Open-ILS/xul/staff_client/chrome/content/evergreen/main/window.js +++ b/Open-ILS/xul/staff_client/chrome/content/evergreen/main/window.js @@ -2,7 +2,7 @@ dump('entering main/window.js\n'); if (typeof main == 'undefined') main = {}; main.window = function () { - JSAN.use('util.error'); this.error = new util.error(); + JSAN.use('util.error'); this.error = new util.error(); this.win = window; return this; }; @@ -30,6 +30,7 @@ main.window.prototype = { var w; netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); + alert('pause'); const CI = Components.interfaces; const PB = Components.classes["@mozilla.org/preferences-service;1"].getService(CI.nsIPrefBranch); @@ -39,7 +40,7 @@ main.window.prototype = { blocked = PB.getBoolPref("dom.disable_open_during_load"); if(blocked) PB.setBoolPref("dom.disable_open_during_load",false); - w = window.open(url,title,features); + w = this.win.open(url,title,features); } catch(E) { this.error.sdump('D_ERROR','window.SafeWindowOpen: ' + E + '\n'); throw(E); @@ -51,7 +52,7 @@ main.window.prototype = { 'open' : function(url,title,features) { this.error.sdump('D_WIN', - 'opening ' + url + ', ' + title + ', ' + features + ' from ' + window + '\n'); + 'opening ' + url + ', ' + title + ', ' + features + ' from ' + this.win + '\n'); var w = this.SafeWindowOpen(url,title,features); /* setTimeout( -- 2.43.2