From fcc8411a18b148a78d1026a8484e057ccb770f92 Mon Sep 17 00:00:00 2001
From: phasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Date: Mon, 7 Jun 2010 20:03:33 +0000
Subject: [PATCH] doh, too quick on the commit. :)  fix the dupe-barcode test

git-svn-id: svn://svn.open-ils.org/ILS/trunk@16621 dcc99617-32d9-48b4-a31d-7c20da2025e4
---
 Open-ILS/web/js/ui/default/actor/user/register.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Open-ILS/web/js/ui/default/actor/user/register.js b/Open-ILS/web/js/ui/default/actor/user/register.js
index 93a21292c3..32876b7109 100644
--- a/Open-ILS/web/js/ui/default/actor/user/register.js
+++ b/Open-ILS/web/js/ui/default/actor/user/register.js
@@ -609,7 +609,7 @@ function attachWidgetEvents(fmcls, fmfield, widget) {
                             params: [openils.User.authtoken, barcode],
                             oncomplete : function(r) {
                                 var res = openils.Util.readResponse(r);
-                                if(res) {
+                                if(res == '1') {
                                     dojo.removeClass(dojo.byId('uedit-dupe-barcode-warning'), 'hidden');
                                 } else {
                                     dojo.addClass(dojo.byId('uedit-dupe-barcode-warning'), 'hidden');
-- 
2.11.0