doh, too quick on the commit. :) fix the dupe-barcode test
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 7 Jun 2010 20:03:33 +0000 (20:03 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 7 Jun 2010 20:03:33 +0000 (20:03 +0000)
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

index 93a2129..32876b7 100644 (file)
@@ -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');