From: phasefx Date: Mon, 18 Feb 2008 21:41:14 +0000 (+0000) Subject: This method returns 1 or 0. == appears to work whether res equals "1" or 1, is that... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=98296c2c3d2c2397b2a3e9f327387d6fdd3ce7d9;p=Evergreen.git 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@8766 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Evergreen/xul/staff_client/server/patron/ue_config.js b/Evergreen/xul/staff_client/server/patron/ue_config.js index ab3ba468a7..917efdcba0 100644 --- a/Evergreen/xul/staff_client/server/patron/ue_config.js +++ b/Evergreen/xul/staff_client/server/patron/ue_config.js @@ -67,7 +67,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;