This method returns 1 or 0. == appears to work whether res equals "1" or 1, is that...
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 18 Feb 2008 21:41:14 +0000 (21:41 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 18 Feb 2008 21:41:14 +0000 (21:41 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@8766 dcc99617-32d9-48b4-a31d-7c20da2025e4

Evergreen/xul/staff_client/server/patron/ue_config.js

index ab3ba46..917efdc 100644 (file)
@@ -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;