[open-ils-commits] r8766 - trunk/Evergreen/xul/staff_client/server/patron

svn at svn.open-ils.org svn at svn.open-ils.org
Mon Feb 18 17:11:24 EST 2008


Author: phasefx
Date: 2008-02-18 16:41:14 -0500 (Mon, 18 Feb 2008)
New Revision: 8766

Modified:
   trunk/Evergreen/xul/staff_client/server/patron/ue_config.js
Log:
This method returns 1 or 0. == appears to work whether res equals "1" or 1, is that what we want?

Modified: trunk/Evergreen/xul/staff_client/server/patron/ue_config.js
===================================================================
--- trunk/Evergreen/xul/staff_client/server/patron/ue_config.js	2008-02-18 21:33:13 UTC (rev 8765)
+++ trunk/Evergreen/xul/staff_client/server/patron/ue_config.js	2008-02-18 21:41:14 UTC (rev 8766)
@@ -67,7 +67,7 @@
 	req.callback( 
 		function(r) {
 			var res = r.getResultObject();
-			if( res !== null && res != patron.id() ) {
+			if( res == 1 ) {
 				field.widget.onblur = null; /* prevent alert storm */
 				alertId('ue_dup_barcode');
 				field.widget.onblur = uEditBarcodeBlur;



More information about the open-ils-commits mailing list