From d299b5f700c17f0f518d5372d39ff073cb714927 Mon Sep 17 00:00:00 2001 From: Jason Etheridge Date: Tue, 19 Feb 2013 18:30:58 -0500 Subject: [PATCH] disable Bill Patron button during use Even though the resulting window is modal, I've seen errors when trying to spam the button while waiting for that window. Signed-off-by: Jason Etheridge --- Open-ILS/xul/staff_client/server/patron/bill2.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Open-ILS/xul/staff_client/server/patron/bill2.js b/Open-ILS/xul/staff_client/server/patron/bill2.js index 8a248f3c90..e2e308e0c4 100644 --- a/Open-ILS/xul/staff_client/server/patron/bill2.js +++ b/Open-ILS/xul/staff_client/server/patron/bill2.js @@ -158,6 +158,7 @@ function event_listeners() { window.bill_event_listeners.add($('bill_patron_btn'), 'command', function() { + $('bill_patron_btn').disabled = true; JSAN.use('util.window'); var win = new util.window(); var my_xulG = win.open( urls.XUL_PATRON_BILL_WIZARD, @@ -169,6 +170,7 @@ function event_listeners() { g.funcs.push( gen_list_append_func( my_xulG.xact_id ) ); if (typeof window.xulG == 'object' && typeof window.xulG.on_money_change == 'function') window.xulG.on_money_change(); } + $('bill_patron_btn').disabled = false; }, false ); -- 2.11.0