Browse Source

update submit form after ajax success + check element is validated

khangvm53 12 years ago
parent
commit
a2312a8ea7
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/js/bootstrapValidator.js

+ 1 - 2
src/js/bootstrapValidator.js

@@ -50,8 +50,7 @@
                             if(that.numPendingRequests > 0 || that.numPendingRequests == null ){
                                 // Check that field is validated?
                                 var $field = that.getFieldElement(field);
-                                if( $field.attr('fieldIsValid') == 1 || $field.attr('fieldIsValid') == '1' ){
-                                }else{
+                                if( $field.attr('fieldIsValid') != 1 || $field.attr('fieldIsValid') != '1' ){
                                     that.validateField(field);
                                 }
                             }