Browse Source

Backport fix in form validation

1.0
jlukic 10 years ago
parent
commit
291a2cd305
1 changed files with 2 additions and 2 deletions
  1. 4
      src/definitions/behaviors/form.js

4
src/definitions/behaviors/form.js

@ -741,8 +741,8 @@ $.fn.form.settings = {
if($form.find('#' + fieldIdentifier).size() > 0) { if($form.find('#' + fieldIdentifier).size() > 0) {
matchingValue = $form.find('#' + fieldIdentifier).val(); matchingValue = $form.find('#' + fieldIdentifier).val();
} }
else if($form.find('[name=' + fieldIdentifier +']').size() > 0) {
matchingValue = $form.find('[name=' + fieldIdentifier + ']').val();
else if($form.find('[name="' + fieldIdentifier +'"]').size() > 0) {
matchingValue = $form.find('[name="' + fieldIdentifier + '"]').val();
} }
else if( $form.find('[data-validate="'+ fieldIdentifier +'"]').size() > 0 ) { else if( $form.find('[data-validate="'+ fieldIdentifier +'"]').size() > 0 ) {
matchingValue = $form.find('[data-validate="'+ fieldIdentifier +'"]').val(); matchingValue = $form.find('[data-validate="'+ fieldIdentifier +'"]').val();

Loading…
Cancel
Save