[open-ils-commits] r14288 - trunk/Open-ILS/xul/staff_client/server/patron (phasefx)

svn at svn.open-ils.org svn at svn.open-ils.org
Wed Oct 7 01:09:48 EDT 2009


Author: phasefx
Date: 2009-10-07 01:09:45 -0400 (Wed, 07 Oct 2009)
New Revision: 14288

Modified:
   trunk/Open-ILS/xul/staff_client/server/patron/display.js
Log:
fix regression with activating checkout pane

Modified: trunk/Open-ILS/xul/staff_client/server/patron/display.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/display.js	2009-10-07 02:08:07 UTC (rev 14287)
+++ trunk/Open-ILS/xul/staff_client/server/patron/display.js	2009-10-07 05:09:45 UTC (rev 14288)
@@ -181,7 +181,7 @@
 						['command'],
                         function(ev) {
     			            obj.reset_nav_styling('cmd_patron_checkout');
-                            spawn_checkout_interface();
+                            obj.spawn_checkout_interface();
                         }
 					],
 					'cmd_patron_items' : [
@@ -695,10 +695,9 @@
 		try { obj.refresh_deck(); } catch(E) { obj.error.sdump('D_ERROR', E + '\n'); }
 	},
 
-    'gen_patron_summary_finish_func' : function() {
+    'spawn_checkout_interface' : function() {
         var obj = this;
-
-        function spawn_checkout_interface() {
+        try {
             try { document.getElementById("PatronNavBarScrollbox").ensureElementIsVisible( document.getElementById("PatronNavBar_checkout" ) ); } catch(E) {};
             obj.reset_nav_styling('cmd_patron_checkout',true);
             var frame = obj.right_deck.set_iframe(
@@ -739,8 +738,14 @@
             );
             netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
             obj.checkout_window = get_contentWindow(frame);
+        } catch(E) {
+            alert('Error in spawn_checkout_interface(): ' + E);
         }
+    },
 
+    'gen_patron_summary_finish_func' : function() {
+        var obj = this;
+
         return function(patron,params) {
             try {
                 obj.patron = patron; obj.controller.render();
@@ -765,7 +770,7 @@
                 }
 
                 if (!obj._checkout_spawned) {
-                    spawn_checkout_interface();
+                    obj.spawn_checkout_interface();
                     obj._checkout_spawned = true;
                 }
 



More information about the open-ils-commits mailing list