Browse Source

missing else

Else if, to stop it from entering the rest of the conditionals.
pull/1408/head
eduardoromero 10 years ago
parent
commit
a659a4a20d
1 changed files with 1 additions and 1 deletions
  1. 2
      dist/components/form.js

2
dist/components/form.js

@ -402,7 +402,7 @@ $.fn.form = function(fields, parameters) {
module.debug('Field is disabled. Skipping', field.identifier);
fieldValid = true;
}
if(field.optional && $.trim($field.val()) === ''){
else if(field.optional && $.trim($field.val()) === ''){
module.debug('Field is optional and empty. Skipping', field.identifier);
fieldValid = true;
}

Loading…
Cancel
Save