From 453adfb99872b743abccba1305468350c58c66d5 Mon Sep 17 00:00:00 2001 From: phasefx Date: Thu, 8 Dec 2005 21:32:20 +0000 Subject: [PATCH] paste-o git-svn-id: svn://svn.open-ils.org/ILS/trunk@2292 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- .../staff_client/chrome/content/evergreen/util/deck.js | 2 +- Open-ILS/xul/staff_client/server/circ/checkout.js | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/Open-ILS/xul/staff_client/chrome/content/evergreen/util/deck.js b/Open-ILS/xul/staff_client/chrome/content/evergreen/util/deck.js index 5d1cb213e1..ceb5160481 100644 --- a/Open-ILS/xul/staff_client/chrome/content/evergreen/util/deck.js +++ b/Open-ILS/xul/staff_client/chrome/content/evergreen/util/deck.js @@ -60,7 +60,7 @@ util.deck.prototype = { if (content_params) { try { netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); - this.error.sdump('D_DECK', 'frame.contentWindow = ' + frame.contentWindow + '\n'); + this.error.sdump('D_DECK', 'frame.contentWindow = ' + iframe.contentWindow + '\n'); iframe.contentWindow.IAMXUL = true; iframe.contentWindow.xulG = content_params; } catch(E) { diff --git a/Open-ILS/xul/staff_client/server/circ/checkout.js b/Open-ILS/xul/staff_client/server/circ/checkout.js index 66c65254d0..6ffb1b70a0 100644 --- a/Open-ILS/xul/staff_client/server/circ/checkout.js +++ b/Open-ILS/xul/staff_client/server/circ/checkout.js @@ -201,6 +201,8 @@ circ.checkout.prototype = { if (typeof window.xulG == 'object' && typeof window.xulG.on_checkout == 'function') { obj.error.sdump('D_CIRC','circ.checkout: Calling external .on_checkout()\n'); window.xulG.on_checkout(checkout); + } else { + obj.error.sdump('D_CIRC','circ.checkout: No external .on_checkout()\n'); } } else { @@ -215,6 +217,8 @@ circ.checkout.prototype = { if (typeof window.xulG == 'object' && typeof window.xulG.on_failure == 'function') { obj.error.sdump('D_CIRC','circ.checkout: Calling external .on_failure()\n'); window.xulG.on_failure(E); + } else { + obj.error.sdump('D_CIRC','circ.checkout: No external .on_failure()\n'); } } @@ -223,11 +227,6 @@ circ.checkout.prototype = { 'on_checkout' : function() { this.controller.view.checkout_barcode_entry_textbox.value = ''; this.controller.view.checkout_barcode_entry_textbox.focus(); - dump('******************************************************************************\n'); - dump('window = ' + window + '\n'); - dump('window.IAMXUL = ' + window.xulG + '\n'); - dump('window.xulG = ' + window.xulG + '\n'); - dump('window.xulG.on_checkout = ' + window.xulG.on_checkout + '\n'); }, 'on_failure' : function() { -- 2.43.2