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

svn at svn.open-ils.org svn at svn.open-ils.org
Tue Nov 30 15:08:10 EST 2010


Author: phasefx
Date: 2010-11-30 15:08:06 -0500 (Tue, 30 Nov 2010)
New Revision: 18881

Modified:
   trunk/Open-ILS/xul/staff_client/server/patron/display.js
Log:
don't want a Refresh to jump back to the default sub-interface


Modified: trunk/Open-ILS/xul/staff_client/server/patron/display.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/display.js	2010-11-30 19:51:27 UTC (rev 18880)
+++ trunk/Open-ILS/xul/staff_client/server/patron/display.js	2010-11-30 20:08:06 UTC (rev 18881)
@@ -762,10 +762,10 @@
             );
             netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
             obj.search_window = get_contentWindow(form_frame);
-            obj._checkout_spawned = true;
+            obj._already_defaulted_once = true;
     },
 
-    '_checkout_spawned' : false,
+    '_already_defaulted_once' : false,
 
     'refresh_deck' : function(url) {
         var obj = this;
@@ -870,19 +870,19 @@
                     }
                 }
 
-                if (display_params['show']) {
-                    setTimeout(
-                        function() {
-                            switch(display_params['show']) {
-                                case 'bills' : util.widgets.dispatch('command','cmd_patron_bills'); break;
-                            }
-                        },
-                        0
-                    );
-                } else {
-                    if (!obj._checkout_spawned) {
+                if (!obj._already_defaulted_once) {
+                    obj._already_defaulted_once = true;
+                    if (display_params['show']) {
+                        setTimeout(
+                            function() {
+                                switch(display_params['show']) {
+                                    case 'bills' : util.widgets.dispatch('command','cmd_patron_bills'); break;
+                                }
+                            },
+                            0
+                        );
+                    } else {
                         obj.spawn_checkout_interface();
-                        obj._checkout_spawned = true;
                     }
                 }
 



More information about the open-ils-commits mailing list