[open-ils-commits] r12635 - trunk/Open-ILS/xul/staff_client/server/circ (phasefx)
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Mar 20 18:05:27 EDT 2009
Author: phasefx
Date: 2009-03-20 18:05:22 -0400 (Fri, 20 Mar 2009)
New Revision: 12635
Modified:
trunk/Open-ILS/xul/staff_client/server/circ/util.js
Log:
Fix the bad status dialog. The acp in the payload used to be fleshed
Modified: trunk/Open-ILS/xul/staff_client/server/circ/util.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/circ/util.js 2009-03-20 20:23:23 UTC (rev 12634)
+++ trunk/Open-ILS/xul/staff_client/server/circ/util.js 2009-03-20 22:05:22 UTC (rev 12635)
@@ -1924,7 +1924,7 @@
],
'text' : {
'1203' : function(r) {
- return r.payload.status().name();
+ return typeof r.payload.status() == 'object' ? r.payload.status().name() : data.hash.ccs[ r.payload.status() ].name();
},
'1234' : function(r) {
return document.getElementById('circStrings').getString('staff.circ.utils.checkin.override.item_deposit_paid.warning');
@@ -2396,7 +2396,7 @@
'7002' : function(r) { return document.getElementById('circStrings').getFormattedString('staff.circ.renew.barcode', [barcode]); },
'7003' : function(r) { return document.getElementById('circStrings').getFormattedString('staff.circ.renew.barcode', [barcode]); },
'7004' : function(r) {
- return document.getElementById('circStrings').getFormattedString('staff.circ.renew.barcode.status', [barcode, r.payload.status().name()]);
+ return document.getElementById('circStrings').getFormattedString('staff.circ.renew.barcode.status', [barcode, typeof r.payload.status() == 'object' ? r.payload.status().name() : obj.data.hash.ccs[ r.payload.status() ].name()]);
},
'7006' : function(r) { return document.getElementById('circStrings').getFormattedString('staff.circ.renew.barcode', [barcode]); },
'7007' : function(r) { return document.getElementById('circStrings').getFormattedString('staff.circ.renew.barcode', [barcode]); },
More information about the open-ils-commits
mailing list