From: Brian Tan Date: Sun, 24 Jan 2016 16:31:22 +0000 (-0500) Subject: [abide.md] X-Git-Tag: v6.2.0-rc.1~35^2~4^2~5^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1f2212f18bd5b644a3ffeb1fa2784880dcdf125b;p=thirdparty%2Ffoundation%2Ffoundation-sites.git [abide.md] Change required after 6.1.2 update. --- diff --git a/docs/pages/abide.md b/docs/pages/abide.md index 60000616b..e7fc890d3 100644 --- a/docs/pages/abide.md +++ b/docs/pages/abide.md @@ -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));