Created
August 11, 2017 09:38
-
-
Save cimfalab/bca1fdcbae21975ea7809d288d5235b0 to your computer and use it in GitHub Desktop.
number_utils.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
validateInteger : function(str, min, max) { | |
if (str==null || str==undefined || (str + "").trim().length < 1) { | |
return Em.I18n.t('number.validate.empty'); | |
} else { | |
... | |
} | |
return null; | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment