]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Update foundation.abide.js 7300/head
authorGervasio Junior <jamilservicos@gmail.com>
Sun, 29 Nov 2015 21:04:23 +0000 (18:04 -0300)
committerGervasio Junior <jamilservicos@gmail.com>
Sun, 29 Nov 2015 21:04:23 +0000 (18:04 -0300)
password input fix

js/foundation.abide.js

index e32a7af7443b36e6137c48ea2dfd8912f0cd6db7..ff5317437e92d89b63eecf8d42e42e33e1adbe0c 100644 (file)
           return true;
         }
         break;
+        case 'password':
+        if ($el.attr('required') && !$el.val()) {
+          // requirement check does not pass
+          return false;
+        } else {
+          return true;
+        }
+        break;
       case 'checkbox':
         if ($el.attr('required') && !$el.is(':checked')) {
           return false;
   Abide.prototype.validateInput = function($el, $form) {
     var self = this,
         textInput = $form.find('input[type="text"]'),
+        passwordInput = $form.find('input[type="password"]'),
         checkInput = $form.find('input[type="checkbox"]'),
         label,
         radioGroupName;