From: Jason Etheridge Date: Tue, 19 Feb 2013 23:30:58 +0000 (-0500) Subject: disable Bill Patron button during use X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=57d5300d16932939422a547d3ca1a446e59a36ed;p=working%2FEvergreen.git 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 --- diff --git a/Open-ILS/xul/staff_client/server/patron/bill2.js b/Open-ILS/xul/staff_client/server/patron/bill2.js index 8f0c19beaa..adc1b6523b 100644 --- a/Open-ILS/xul/staff_client/server/patron/bill2.js +++ b/Open-ILS/xul/staff_client/server/patron/bill2.js @@ -164,6 +164,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, @@ -175,6 +176,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 );