]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
[abide.md] 7985/head
authorBrian Tan <briantan888@users.noreply.github.com>
Sun, 24 Jan 2016 16:31:22 +0000 (11:31 -0500)
committerBrian Tan <briantan888@users.noreply.github.com>
Sun, 24 Jan 2016 16:31:22 +0000 (11:31 -0500)
Change required after 6.1.2 update.

docs/pages/abide.md

index 60000616b0ee28b6dd90f95327e0177593d0a4d2..e7fc890d3974d380bcb9f1217dd840f166c4ca4b 100644 (file)
@@ -208,6 +208,7 @@ Foundation.Abide.defaults.patterns['dashes_only'] = /^[0-9-]*$/;
 Foundation.Abide.defaults.validators['greater_than'] =
 function($el,required,parent) {
   // parameter 1 is jQuery selector
+  if (!required) return true;
   var from = $('#'+$el.attr('data-greater-than')).val(),
       to = $el.val();
   return (parseInt(to) > parseInt(from));