fix #7391 -New_Customer_Portal_30_Login
[roojs1] / Roo / bootstrap / form / Input.js
index 7fdabc3..3b43fc2 100644 (file)
@@ -707,12 +707,12 @@ Roo.extend(Roo.bootstrap.form.Input, Roo.bootstrap.Component,  {
         }
         if(typeof this.validator == "function"){
             var msg = this.validator(value);
-            if(msg !== true){
-                return false;
-            }
             if (typeof(msg) == 'string') {
                 this.invalidText = msg;
             }
+            if(msg !== true){
+                return false;
+            }
         }
         
         if(this.regex && !this.regex.test(value)){