[open-ils-commits] r8765 - trunk/Open-ILS/xul/staff_client/server/patron

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


Author: phasefx
Date: 2008-02-18 16:33:13 -0500 (Mon, 18 Feb 2008)
New Revision: 8765

Modified:
   trunk/Open-ILS/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/Open-ILS/xul/staff_client/server/patron/ue_config.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/ue_config.js	2008-02-18 21:21:32 UTC (rev 8764)
+++ trunk/Open-ILS/xul/staff_client/server/patron/ue_config.js	2008-02-18 21:33:13 UTC (rev 8765)
@@ -81,7 +81,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