paste-o
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 8 Dec 2005 21:32:20 +0000 (21:32 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 8 Dec 2005 21:32:20 +0000 (21:32 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@2292 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/chrome/content/evergreen/util/deck.js
Open-ILS/xul/staff_client/server/circ/checkout.js

index 5d1cb21..ceb5160 100644 (file)
@@ -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) {
index 66c6525..6ffb1b7 100644 (file)
@@ -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() {