Skip to content

Commit

Permalink
Custom message on html not displaying with multiple validator #45
Browse files Browse the repository at this point in the history
  • Loading branch information
hueitan committed Oct 27, 2014
1 parent f882501 commit bcaab7e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions dist/angular-validation.js
Original file line number Diff line number Diff line change
Expand Up @@ -355,8 +355,8 @@
var validators = validation.slice(0),
validator = validators[0].trim(),
leftValidation = validators.slice(1),
successMessage = validation + 'SuccessMessage',
errorMessage = validation + 'ErrorMessage',
successMessage = validator + 'SuccessMessage',
errorMessage = validator + 'ErrorMessage',
expression = $validationProvider.getExpression(validator),
valid = {
success: function() {
Expand Down
2 changes: 1 addition & 1 deletion dist/angular-validation.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -217,4 +217,4 @@ <h1>Angular Validation.
<script src="demo/demo.js"></script>

</body>
</html>
</html>
4 changes: 2 additions & 2 deletions src/directive.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@
var validators = validation.slice(0),
validator = validators[0].trim(),
leftValidation = validators.slice(1),
successMessage = validation + 'SuccessMessage',
errorMessage = validation + 'ErrorMessage',
successMessage = validator + 'SuccessMessage',
errorMessage = validator + 'ErrorMessage',
expression = $validationProvider.getExpression(validator),
valid = {
success: function() {
Expand Down

0 comments on commit bcaab7e

Please sign in to comment.