File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed
src/definitions/behaviors Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -1128,7 +1128,7 @@ $.fn.form = function(parameters) {
1128
1128
$elGroup = $ ( el ) . closest ( $group ) ,
1129
1129
isCheckbox = ( $el . filter ( selector . checkbox ) . length > 0 ) ,
1130
1130
isRequired = $el . prop ( 'required' ) || $elGroup . hasClass ( className . required ) || $elGroup . parent ( ) . hasClass ( className . required ) ,
1131
- isDisabled = $el . prop ( ' disabled') || $elGroup . hasClass ( className . disabled ) || $elGroup . parent ( ) . hasClass ( className . disabled ) ,
1131
+ isDisabled = $el . is ( ': disabled') || $elGroup . hasClass ( className . disabled ) || $elGroup . parent ( ) . hasClass ( className . disabled ) ,
1132
1132
validation = module . get . validation ( $el ) ,
1133
1133
hasEmptyRule = validation
1134
1134
? $ . grep ( validation . rules , function ( rule ) { return rule . type == "empty" } ) !== 0
@@ -1207,13 +1207,7 @@ $.fn.form = function(parameters) {
1207
1207
module . debug ( 'Using field name as identifier' , identifier ) ;
1208
1208
field . identifier = identifier ;
1209
1209
}
1210
- var isDisabled = true ;
1211
- $ . each ( $field , function ( ) {
1212
- if ( ! $ ( this ) . prop ( 'disabled' ) ) {
1213
- isDisabled = false ;
1214
- return false ;
1215
- }
1216
- } ) ;
1210
+ var isDisabled = ! $field . filter ( ':not(:disabled)' ) . length ;
1217
1211
if ( isDisabled ) {
1218
1212
module . debug ( 'Field is disabled. Skipping' , identifier ) ;
1219
1213
}
You can’t perform that action at this time.
0 commit comments