Skip to content

Commit

Permalink
Merge pull request #7985 from briantan888/patch-7
Browse files Browse the repository at this point in the history
[abide.md]
  • Loading branch information
gakimball committed Feb 2, 2016
2 parents 80a384e + 1f2212f commit 5b61732
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/pages/abide.md
Expand Up @@ -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));
Expand Down

0 comments on commit 5b61732

Please sign in to comment.