Skip to content

Commit

Permalink
Merge pull request jquerytools#421 from statico/master
Browse files Browse the repository at this point in the history
Corrected error messages for min and max validators
  • Loading branch information
bradrobertson committed Aug 24, 2011
2 parents 613458e + 255e2f3 commit 0046c59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/validator/validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@
return numRe.test(v);
});

v.fn("[max]", "Please enter a value smaller than $1", function(el, v) {
v.fn("[max]", "Please enter a value no larger than $1", function(el, v) {

// skip empty values and dateinputs
if (v === '' || dateInput && el.is(":date")) { return true; }
Expand All @@ -237,7 +237,7 @@
return parseFloat(v) <= parseFloat(max) ? true : [max];
});

v.fn("[min]", "Please enter a value larger than $1", function(el, v) {
v.fn("[min]", "Please enter a value of at least $1", function(el, v) {

// skip empty values and dateinputs
if (v === '' || dateInput && el.is(":date")) { return true; }
Expand Down

0 comments on commit 0046c59

Please sign in to comment.