Skip to content

Commit

Permalink
Release v0.8.18
Browse files Browse the repository at this point in the history
  • Loading branch information
johnculviner committed Nov 10, 2014
1 parent 967be02 commit 7f5a2c7
Show file tree
Hide file tree
Showing 4 changed files with 8 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-agility",
"version": "0.8.17",
"version": "0.8.18",
"homepage": "https://github.com/AngularAgility/AngularAgility",
"authors": [
"John Culviner <[email protected]>"
Expand Down
8 changes: 4 additions & 4 deletions dist/angular-agility.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
angular-agility "version":"0.8.17" @ 2014-10-28T09:01:01
angular-agility "version":"0.8.18" @ 2014-11-09T18:26:01
Copyright (c) 2014 - John Culviner
Licensed under the MIT license
*/
Expand Down Expand Up @@ -2715,10 +2715,10 @@ angular
msg = aaUtils.stringFormat(attrs.maxMsg || aaFormExtensions.validationMessages.max, fieldName, attrs.max);
} else if (key === 'pattern') {
msg = aaUtils.stringFormat(attrs.ngPatternMsg || aaFormExtensions.validationMessages.pattern, fieldName);
} else if (key === 'required' && element[0].type === 'number') {
} else if (key === 'required' && element[0].type === 'number' && ngModel.$error.number) {
//angular doesn't correctly flag numbers as invalid rather as required when something wrong is filled in
//hack around it
msg = aaUtils.stringFormat(attrs.numberMsg || aaFormExtensions.validationMessages.number, fieldName);
//this is fixed in 1.3 but this hack maintains backward/forward compatibility
continue;
} else if (aaFormExtensions.validationMessages[key]) {
//globally registered custom message
msg = aaUtils.stringFormat(aaFormExtensions.validationMessages[key], fieldName);
Expand Down
4 changes: 2 additions & 2 deletions dist/angular-agility.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-agility",
"version": "0.8.17",
"version": "0.8.18",
"dependencies": {
"express": "^3.10.2",
"lodash": "^2.4.1"
Expand Down

0 comments on commit 7f5a2c7

Please sign in to comment.