diff --git a/src/assets/netteForms.js b/src/assets/netteForms.js index 199c973e6..af1c8b1e7 100644 --- a/src/assets/netteForms.js +++ b/src/assets/netteForms.js @@ -425,7 +425,7 @@ Nette.validators = { return null; } } - return Nette.validators.range(elem, [arg, null], val); + return arg === null || parseFloat(val) >= arg; }, max: function(elem, arg, val) { @@ -436,7 +436,7 @@ Nette.validators = { return null; } } - return Nette.validators.range(elem, [null, arg], val); + return arg === null || parseFloat(val) <= arg; }, range: function(elem, arg, val) {