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

Commit

Permalink
Rename errorMessageVisible to isErrorMessageVisible
Browse files Browse the repository at this point in the history
  • Loading branch information
ghiscoding committed Jan 19, 2017
1 parent 4c71ea6 commit 9fe3d60
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-validation-ghiscoding",
"version": "1.5.14",
"version": "1.5.15",
"author": "Ghislain B.",
"description": "Angular-Validation Directive and Service (ghiscoding)",
"main": [
Expand Down
1 change: 1 addition & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
Angular-Validation change logs

1.5.15 (2017-01-19) Rename errorMessageVisible to isErrorMessageVisible.
1.5.14 (2017-01-18) Added errorMessageVisible at updateErrorMsg this help to know when the error message is displayed or not.
1.5.13 (2016-12-29) Make sure element exist before looking for `isValidationCancelled`, issue #139
1.5.12 (2016-12-15) Fix a small issue introduced by last commit (Angular Form overwritten with simple object in some rare occasions).
Expand Down
6 changes: 3 additions & 3 deletions dist/angular-validation.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-validation-ghiscoding",
"version": "1.5.14",
"version": "1.5.15",
"author": "Ghislain B.",
"description": "Angular-Validation Directive and Service (ghiscoding)",
"main": "dist/angular-validation.min",
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#Angular Validation (Directive / Service)
`Version: 1.5.14`
`Version: 1.5.15`
### Forms Validation with Angular made easy!
##### (Concept comes from the amazing Laravel)

Expand Down
4 changes: 2 additions & 2 deletions src/validation-common.js
Original file line number Diff line number Diff line change
Expand Up @@ -486,10 +486,10 @@ angular
// invalid & isDirty, display the error message... if <span> not exist then create it, else udpate the <span> text
if (!_globalOptions.hideErrorUnderInputs && !!attrs && !attrs.isValid && (isSubmitted || self.ctrl.$dirty || self.ctrl.$touched || self.ctrl.revalidateCalled)) {
(errorElm.length > 0) ? errorElm.html(errorMsg) : elm.after('<div class="validation validation-' + elmInputName + ' text-danger">' + errorMsg + '</div>');
self.ctrl.errorMessageVisible = true;
self.ctrl.isErrorMessageVisible = true;
} else {
errorElm.html(''); // element is pristine or no validation applied, error message has to be blank
self.ctrl.errorMessageVisible = undefined;
self.ctrl.isErrorMessageVisible = undefined;
}
}

Expand Down

0 comments on commit 9fe3d60

Please sign in to comment.