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

Commit 9fe3d60

Browse files
committed
Rename errorMessageVisible to isErrorMessageVisible
1 parent 4c71ea6 commit 9fe3d60

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.5.14",
3+
"version": "1.5.15",
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.5.15 (2017-01-19) Rename errorMessageVisible to isErrorMessageVisible.
34
1.5.14 (2017-01-18) Added errorMessageVisible at updateErrorMsg this help to know when the error message is displayed or not.
45
1.5.13 (2016-12-29) Make sure element exist before looking for `isValidationCancelled`, issue #139
56
1.5.12 (2016-12-15) Fix a small issue introduced by last commit (Angular Form overwritten with simple object in some rare occasions).

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.5.14",
3+
"version": "1.5.15",
44
"author": "Ghislain B.",
55
"description": "Angular-Validation Directive and Service (ghiscoding)",
66
"main": "dist/angular-validation.min",

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.5.14`
2+
`Version: 1.5.15`
33
### Forms Validation with Angular made easy!
44
##### (Concept comes from the amazing Laravel)
55

src/validation-common.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -486,10 +486,10 @@ angular
486486
// invalid & isDirty, display the error message... if <span> not exist then create it, else udpate the <span> text
487487
if (!_globalOptions.hideErrorUnderInputs && !!attrs && !attrs.isValid && (isSubmitted || self.ctrl.$dirty || self.ctrl.$touched || self.ctrl.revalidateCalled)) {
488488
(errorElm.length > 0) ? errorElm.html(errorMsg) : elm.after('<div class="validation validation-' + elmInputName + ' text-danger">' + errorMsg + '</div>');
489-
self.ctrl.errorMessageVisible = true;
489+
self.ctrl.isErrorMessageVisible = true;
490490
} else {
491491
errorElm.html(''); // element is pristine or no validation applied, error message has to be blank
492-
self.ctrl.errorMessageVisible = undefined;
492+
self.ctrl.isErrorMessageVisible = undefined;
493493
}
494494
}
495495

0 commit comments

Comments
 (0)