From: Gervasio Junior Date: Sun, 29 Nov 2015 21:04:23 +0000 (-0300) Subject: Update foundation.abide.js X-Git-Tag: v6.0.6~19^2 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F7300%2Fhead;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Update foundation.abide.js password input fix --- diff --git a/js/foundation.abide.js b/js/foundation.abide.js index e32a7af74..ff5317437 100644 --- a/js/foundation.abide.js +++ b/js/foundation.abide.js @@ -136,6 +136,14 @@ 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; @@ -222,6 +230,7 @@ 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;