Browse Source

Fix multiple match for some rules

pull/2228/merge
jlukic 9 years ago
parent
commit
ae745077aa
1 changed files with 6 additions and 0 deletions
  1. 6
      src/definitions/behaviors/form.js

6
src/definitions/behaviors/form.js

@ -1144,6 +1144,9 @@ $.fn.form.settings = {
else if($('[name="' + fieldIdentifier +'"]').length > 0) {
matchingValue = $('[name="' + fieldIdentifier + '"]').val();
}
else if( $('[name="' + identifier +'[]"]').length > 0 ) {
matchingValue = $('[name="' + identifier +'[]"]');
}
return (matchingValue !== undefined)
? ( value.toString() !== matchingValue.toString() )
: false
@ -1166,6 +1169,9 @@ $.fn.form.settings = {
else if($('[name="' + fieldIdentifier +'"]').length > 0) {
matchingValue = $('[name="' + fieldIdentifier + '"]').val();
}
else if( $('[name="' + identifier +'[]"]').length > 0 ) {
matchingValue = $('[name="' + identifier +'[]"]');
}
return (matchingValue !== undefined)
? ( value.toString() == matchingValue.toString() )
: false

Loading…
Cancel
Save