members.js - return false when validation fails.
authorJoe Atzberger <joe.atzberger@liblime.com>
Tue, 18 Dec 2007 19:06:37 +0000 (13:06 -0600)
committerJoshua Ferraro <jmf@liblime.com>
Tue, 18 Dec 2007 22:37:28 +0000 (16:37 -0600)
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
koha-tmpl/intranet-tmpl/prog/en/js/members.js

index d9358c0..74e6aba 100644 (file)
@@ -19,19 +19,19 @@ if (d!="") {
       if ( ((isNaN(dd))||(dd<1)||(dd>31)) && (ok==1) ) {
         msg = _("day not correct."); 
            alert(msg); ok=0; field.focus();
-           return;
+           return false;
       }
       // checking months
       if ( ((isNaN(mm))||(mm<1)||(mm>12)) && (ok==1) ) {
         msg = _("month not correct.");
            alert(msg); ok=0; field.focus();
-           return;
+           return false;
       }
       // checking years
       if ( ((isNaN(yyyy))||(yyyy<amin)||(yyyy>amax)) && (ok==1) ) {
         msg = _("years not correct."); 
            alert(msg); ok=0; field.focus();
-           return;
+           return false;
       }
    }
 }