From 23bfa9fadbc5247266261e3f8c6769cef230051a Mon Sep 17 00:00:00 2001 From: Paul Yoder Date: Mon, 19 Jan 2015 09:11:02 -0600 Subject: [PATCH] deploying version 2.3.0 --- CHANGELOG.md | 5 +++++ bower.json | 2 +- package.json | 2 +- src/showErrors.min.js | 2 +- 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 24f3714..c718b04 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +### 2.3.0 + +* Bug Fixes + * reverted the commit in v2.2.0 that no longer required inputs to have the form-control class. This broke select boxes. + ### 2.2.0 * Enhancements diff --git a/bower.json b/bower.json index a99eb3d..c4e08c4 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "angular-bootstrap-show-errors", - "version": "2.2.0", + "version": "2.3.0", "authors": [ "Paul Yoder " ], diff --git a/package.json b/package.json index 4d19ef4..f1f6094 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "angular-bootstrap-show-errors", - "version": "2.2.0", + "version": "2.3.0", "description": "An Angular Directive to intelligently show form validation errors", "author": "Paul Yoder ", "license": "MIT", diff --git a/src/showErrors.min.js b/src/showErrors.min.js index 6de8aa5..72c5343 100644 --- a/src/showErrors.min.js +++ b/src/showErrors.min.js @@ -1,2 +1,2 @@ -/*! angular-bootstrap-show-errors (version 2.1.0) 2015-01-13 */ +/*! angular-bootstrap-show-errors (version 2.3.0) 2015-01-19 */ (function(){var a;a=angular.module("ui.bootstrap.showErrors",[]),a.directive("showErrors",["$timeout","showErrorsConfig","$interpolate",function(a,b,c){var d,e,f;return e=function(a){var c;return c=b.trigger,a&&null!=a.trigger&&(c=a.trigger),c},d=function(a){var c;return c=b.showSuccess,a&&null!=a.showSuccess&&(c=a.showSuccess),c},f=function(b,f,g,h){var i,j,k,l,m,n,o,p;if(i=!1,m=b.$eval(g.showErrors),n=d(m),p=e(m),j=f[0].querySelector(".form-control[name]"),l=angular.element(j),k=c(l.attr("name")||"")(b),!k)throw"show-errors element has no child input elements with a 'name' attribute and a 'form-control' class";return l.bind(p,function(){return i=!0,o(h[k].$invalid)}),b.$watch(function(){return h[k]&&h[k].$invalid},function(a){return i?o(a):void 0}),b.$on("show-errors-check-validity",function(){return o(h[k].$invalid)}),b.$on("show-errors-reset",function(){return a(function(){return f.removeClass("has-error"),f.removeClass("has-success"),i=!1},0,!1)}),o=function(a){return f.toggleClass("has-error",a),n?f.toggleClass("has-success",!a):void 0}},{restrict:"A",require:"^form",compile:function(a,b){if(-1===b.showErrors.indexOf("skipFormGroupCheck")&&!a.hasClass("form-group")&&!a.hasClass("input-group"))throw"show-errors element does not have the 'form-group' or 'input-group' class";return f}}}]),a.provider("showErrorsConfig",function(){var a,b;a=!1,b="blur",this.showSuccess=function(b){return a=b},this.trigger=function(a){return b=a},this.$get=function(){return{showSuccess:a,trigger:b}}})}).call(this); \ No newline at end of file