From 75d22b4014fb771bfc3226a05ac8dc91b50b522d Mon Sep 17 00:00:00 2001 From: phasefx Date: Mon, 18 Feb 2008 21:33:13 +0000 Subject: [PATCH] This method returns 1 or 0. == appears to work whether res equals "1" or 1, is that what we want? git-svn-id: svn://svn.open-ils.org/ILS/trunk@8765 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/xul/staff_client/server/patron/ue_config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/xul/staff_client/server/patron/ue_config.js b/Open-ILS/xul/staff_client/server/patron/ue_config.js index f5281b9884..6b63f0d34a 100644 --- a/Open-ILS/xul/staff_client/server/patron/ue_config.js +++ b/Open-ILS/xul/staff_client/server/patron/ue_config.js @@ -81,7 +81,7 @@ function uEditBarcodeBlur(field) { 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; -- 2.43.2