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 <jason@esilibrary.com>
Signed-off-by: Jason Stephenson <jason@sigio.com>
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,
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
);