Browse Source

Merge branch 'master' of https://github.com/eduardoromero/Semantic-UI into next

pull/1481/head
jlukic 10 years ago
parent
commit
926e5e1229
1 changed files with 5 additions and 1 deletions
  1. 6
      dist/components/form.js

6
dist/components/form.js

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

Loading…
Cancel
Save