From 97ed8b506b98bbe8cba973e722bea03cfc35fada Mon Sep 17 00:00:00 2001 From: phasefx Date: Tue, 30 Nov 2010 20:08:06 +0000 Subject: [PATCH] don't want a Refresh to jump back to the default sub-interface git-svn-id: svn://svn.open-ils.org/ILS/trunk@18881 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/xul/staff_client/server/patron/display.js | 28 +++++++++++----------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/Open-ILS/xul/staff_client/server/patron/display.js b/Open-ILS/xul/staff_client/server/patron/display.js index 0264ddb863..67c1709666 100644 --- a/Open-ILS/xul/staff_client/server/patron/display.js +++ b/Open-ILS/xul/staff_client/server/patron/display.js @@ -762,10 +762,10 @@ patron.display.prototype = { ); 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 @@ patron.display.prototype = { } } - 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; } } -- 2.11.0