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
);
window.bill_event_listeners.add($('bill_history_btn'),
'command',
function() {
- xulG.display_window.g.patron.right_deck.reset_iframe(
- urls.XUL_PATRON_BILL_HISTORY,
- {},
- {
+ if (xulG.alt_bill_history) {
+ xulG.alt_bill_history();
+ } else {
+ var content_params = {
'patron_id' : g.patron_id,
'refresh' : function() { refresh(); },
'new_tab' : xulG.new_tab,
'url_prefix' : xulG.url_prefix
- }
- );
+ };
+ var func = xulG.display_window
+ ? xulG.display_window.g.patron.right_deck.reset_iframe
+ : xulG.set_tab;
+ func(
+ urls.XUL_PATRON_BILL_HISTORY,
+ {},
+ content_params
+ );
+ }
},
false
);