Skip to content
This repository was archived by the owner on Jul 1, 2020. It is now read-only.

Commit d21b041

Browse files
committed
Fixed issue #78 - max validator problem
'strValue is not defined' error when using `max` auto-detect validator.
1 parent d541aad commit d21b041

File tree

6 files changed

+9
-8
lines changed

6 files changed

+9
-8
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-validation-ghiscoding",
3-
"version": "1.4.12",
3+
"version": "1.4.13",
44
"author": "Ghislain B.",
55
"description": "Angular-Validation Directive and Service (ghiscoding)",
66
"main": [

changelog.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
Angular-Validation change logs
22

3+
1.4.13 (2015-11-04) Fixed issue #76 - 'strValue is not defined' error when using `max` auto-detect validator.
34
1.4.12 (2015-11-01) Fixed a small issue with pulling the form name when trying to find the parent form of an input element.
45
1.4.11 (2015-10-29) Enhancement #75 - Added custom rules validation through custom functions. Fixed issue #76 - problem with ui-mask in directive.
56
1.4.10 (2015-10-12) Sanitized error messages. Fixed issue #69 - Stop when invalid characters typed on input[number].

dist/angular-validation.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-validation-ghiscoding",
3-
"version": "1.4.12",
3+
"version": "1.4.13",
44
"author": "Ghislain B.",
55
"description": "Angular-Validation Directive and Service (ghiscoding)",
66
"main": "app.js",

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#Angular Validation (Directive / Service)
2-
`Version: 1.4.12`
2+
`Version: 1.4.13`
33
### Form validation after user inactivity of default 1sec. (customizable timeout)
44

55
Forms Validation with Angular made easy! Angular-Validation is an angular directive/service with locales (languages) with a very simple approach of defining your `validation=""` directly within your element to validate (input, textarea, etc) and...that's it!!! The directive/service will take care of the rest!

src/validation-common.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ angular
491491

492492
// When AutoDetect it will auto-detect the type and rewrite the conditions or regex pattern, depending on type found
493493
if (validator.type === "autoDetect") {
494-
validator = validatorAutoDetectType(validator);
494+
validator = validatorAutoDetectType(validator, strValue);
495495
}
496496

497497
// get the ngDisabled attribute if found
@@ -1270,7 +1270,7 @@ angular
12701270
* @param object validator
12711271
* @return object rewritten validator
12721272
*/
1273-
function validatorAutoDetectType(validator) {
1273+
function validatorAutoDetectType(validator, strValue) {
12741274
if (isNumeric(strValue)) {
12751275
return {
12761276
condition: validator.conditionNum,

0 commit comments

Comments
 (0)