[open-ils-commits] r14230 - trunk/Open-ILS/xul/staff_client/server/circ (phasefx)

svn at svn.open-ils.org svn at svn.open-ils.org
Wed Sep 30 14:54:30 EDT 2009


Author: phasefx
Date: 2009-09-30 14:54:25 -0400 (Wed, 30 Sep 2009)
New Revision: 14230

Modified:
   trunk/Open-ILS/xul/staff_client/server/circ/util.js
Log:
Don't fire this request unless we can make use of the returned data

Modified: trunk/Open-ILS/xul/staff_client/server/circ/util.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/circ/util.js	2009-09-30 18:40:03 UTC (rev 14229)
+++ trunk/Open-ILS/xul/staff_client/server/circ/util.js	2009-09-30 18:54:25 UTC (rev 14230)
@@ -2200,7 +2200,7 @@
 			document.getElementById('no_change_label').setAttribute('hidden','true');
 		}
 
-		if (check.circ) {
+		if (check.circ && ( document.getElementById('no_change_label') || document.getElementById('fine_tally') ) ) {
 			network.simple_request('FM_MBTS_RETRIEVE.authoritative',[ses(),check.circ.id()], function(req) {
 				JSAN.use('util.money');
 				var bill = req.getResultObject();



More information about the open-ils-commits mailing list