obj.summary_window.g.summary.controller.render('patron_checkouts');
obj.summary_window.g.summary.controller.render('patron_standing_penalties');
obj.summary_window.g.summary.controller.render('patron_bill');
- obj.bill_window.g.bills.refresh(true);
+ if (obj.bill_window) {
+ obj.bill_window.refresh(true);
+ }
},
'url_prefix' : function(url,secure) { return xulG.url_prefix(url,secure); },
'get_new_session' : function(a) { return xulG.get_new_session(a); },
'get_new_session' : function(a) { return xulG.get_new_session(a); },
'new_tab' : function(a,b,c) { return xulG.new_tab(a,b,c); },
'on_money_change' : function(b) {
+ obj.summary_window.g.summary.controller.render('patron_standing_penalties');
+ obj.summary_window.g.summary.controller.render('patron_bill');
obj.summary_window.refresh();
}
}
'cmd_items_renew_all' : [ ['command'], function() { obj.items_renew_all({which_list:1}); } ],
'cmd_items_renew2' : [ ['command'], function() { obj.items_renew({which_list:2}); } ],
'cmd_items_renew_with_date2' : [ ['command'], function() { obj.items_renew({which_list:2,skip_prompt:true,get_date:true}); } ],
- 'cmd_items_edit' : [ ['command'], function() { obj.items_edit(1); /*obj.retrieve();*/ } ],
- 'cmd_items_edit2' : [ ['command'], function() { obj.items_edit(2); /*obj.retrieve();*/ } ],
- 'cmd_items_mark_lost' : [ ['command'], function() { obj.items_mark_lost(1); /*obj.retrieve();*/ } ],
- 'cmd_items_mark_lost2' : [ ['command'], function() { obj.items_mark_lost(2); /*obj.retrieve();*/ } ],
- 'cmd_items_claimed_returned' : [ ['command'], function() { obj.items_claimed_returned(1); /*obj.retrieve();*/ } ],
- 'cmd_items_claimed_returned2' : [ ['command'], function() { obj.items_claimed_returned(2); /*obj.retrieve();*/ } ],
+ 'cmd_items_edit' : [ ['command'], function() { obj.items_edit(1); obj.refresh_outer_interfaces(); } ],
+ 'cmd_items_edit2' : [ ['command'], function() { obj.items_edit(2); obj.refresh_outer_interfaces(); } ],
+ 'cmd_items_mark_lost' : [ ['command'], function() { obj.items_mark_lost(1); obj.refresh_outer_interfaces(); } ],
+ 'cmd_items_mark_lost2' : [ ['command'], function() { obj.items_mark_lost(2); obj.refresh_outer_interfaces(); } ],
+ 'cmd_items_claimed_returned' : [ ['command'], function() { obj.items_claimed_returned(1); obj.refresh_outer_interfaces(); } ],
+ 'cmd_items_claimed_returned2' : [ ['command'], function() { obj.items_claimed_returned(2); obj.refresh_outer_interfaces(); } ],
'cmd_items_claimed_never_checked_out' : [
['command'],
function() {
);
}
],
- 'cmd_items_checkin' : [ ['command'], function() { obj.items_checkin(1); /*obj.retrieve();*/ } ],
- 'cmd_items_checkin2' : [ ['command'], function() { obj.items_checkin(2); /*obj.retrieve();*/ } ],
+ 'cmd_items_checkin' : [ ['command'], function() { obj.items_checkin(1); obj.refresh_outer_interfaces(); } ],
+ 'cmd_items_checkin2' : [ ['command'], function() { obj.items_checkin(2); obj.refresh_outer_interfaces(); } ],
'cmd_show_catalog' : [ ['command'], function() { obj.show_catalog(1); } ],
'cmd_show_catalog2' : [ ['command'], function() { obj.show_catalog(2); } ],
- 'cmd_add_billing' : [ ['command'], function() { obj.add_billing(1); /*obj.retrieve();*/ } ],
- 'cmd_add_billing2' : [ ['command'], function() { obj.add_billing(2); /*obj.retrieve();*/ } ],
+ 'cmd_add_billing' : [ ['command'], function() { obj.add_billing(1); obj.refresh_outer_interfaces(); } ],
+ 'cmd_add_billing2' : [ ['command'], function() { obj.add_billing(2); obj.refresh_outer_interfaces(); } ],
'cmd_show_noncats' : [ ['command'], function() { obj.show_noncats(); } ]
}
}
}
exec.chain( rows );
if (!dont_show_me_the_list_change) {
- if (window.xulG && typeof window.xulG.on_list_change == 'function') {
- try { window.xulG.on_list_change(obj.checkouts); } catch(E) { this.error.sdump('D_ERROR',E); }
- }
+ obj.refresh_outer_interfaces();
+ }
+ },
+
+ 'refresh_outer_interfaces' : function() {
+ var obj = this;
+ if (window.xulG && typeof window.xulG.on_list_change == 'function') {
+ try { window.xulG.on_list_change(obj.checkouts); } catch(E) { this.error.sdump('D_ERROR',E); }
}
},