Skip to content
This repository was archived by the owner on Aug 15, 2021. It is now read-only.

Commit e2ce20b

Browse files
committed
Updated version number
1 parent 89a94c6 commit e2ce20b

5 files changed

+69
-65
lines changed

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-auto-validate",
3-
"version": "1.19.3",
3+
"version": "1.19.4",
44
"description": "An automatic validation module for AngularJS which gets rid of excess html in favour of dynamic element modification to notify the user of validation errors",
55
"main": "dist/jcs-auto-validate.js",
66
"keywords": [

dist/jcs-auto-validate.js

+36-32
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* angular-auto-validate - v1.19.3 - 2016-06-16
2+
* angular-auto-validate - v1.19.4 - 2016-06-16
33
* https://github.com/jonsamwell/angular-auto-validate
44
* Copyright (c) 2016 Jon Samwell (http://www.jonsamwell.com)
55
*/
@@ -355,38 +355,42 @@ function ValidatorFn() {
355355
angular.module('jcs-autoValidate').provider('validator', ValidatorFn);
356356

357357
function Bootstrap3ElementModifierFn($log) {
358-
var customCss = [
359-
'<style>' +
360-
'.glyphicon-spin-jcs {' +
361-
'-webkit-animation: spin 1000ms infinite linear;' +
362-
'animation: spin 1000ms infinite linear;' +
363-
'}' +
364-
'@-webkit-keyframes spin {' +
365-
'0% {' +
366-
'-webkit-transform: rotate(0deg);' +
367-
'transform: rotate(0deg);' +
368-
'}' +
369-
'100% {' +
370-
'-webkit-transform: rotate(359deg);' +
371-
'transform: rotate(359deg);' +
372-
'}' +
373-
'}' +
374-
'@keyframes spin {' +
375-
'0% {' +
376-
'-webkit-transform: rotate(0deg);' +
377-
'transform: rotate(0deg);' +
378-
'}' +
379-
'100% {' +
380-
'-webkit-transform: rotate(359deg);' +
381-
'transform: rotate(359deg);' +
382-
'}' +
383-
'}' +
384-
'</style>'
385-
].join('');
386-
387-
angular.element(document.body).append(angular.element(customCss));
358+
var addedCustomCss = false,
359+
customCss = [
360+
'<style>' +
361+
'.glyphicon-spin-jcs {' +
362+
'-webkit-animation: spin 1000ms infinite linear;' +
363+
'animation: spin 1000ms infinite linear;' +
364+
'}' +
365+
'@-webkit-keyframes spin {' +
366+
'0% {' +
367+
'-webkit-transform: rotate(0deg);' +
368+
'transform: rotate(0deg);' +
369+
'}' +
370+
'100% {' +
371+
'-webkit-transform: rotate(359deg);' +
372+
'transform: rotate(359deg);' +
373+
'}' +
374+
'}' +
375+
'@keyframes spin {' +
376+
'0% {' +
377+
'-webkit-transform: rotate(0deg);' +
378+
'transform: rotate(0deg);' +
379+
'}' +
380+
'100% {' +
381+
'-webkit-transform: rotate(359deg);' +
382+
'transform: rotate(359deg);' +
383+
'}' +
384+
'}' +
385+
'</style>'
386+
].join('');
388387

389388
var reset = function (el) {
389+
if (addedCustomCss === false) {
390+
angular.element(document.body).append(angular.element(customCss));
391+
addedCustomCss = true;
392+
}
393+
390394
angular.forEach(el.find('span'), function (spanEl) {
391395
spanEl = angular.element(spanEl);
392396
if (spanEl.hasClass('error-msg') || spanEl.hasClass('form-control-feedback') || spanEl.hasClass('control-feedback')) {
@@ -487,7 +491,7 @@ function Bootstrap3ElementModifierFn($log) {
487491
var iconElText = '<span class="glyphicon glyphicon-ok form-control-feedback"></span>';
488492
if (inputGroupEl.length > 0) {
489493
iconElText = iconElText.replace('form-', '');
490-
iconElText = '<span class="input-group-addon control-feedback">' + iconElText + '</span';
494+
iconElText = '<span class="input-group-addon control-feedback">' + iconElText + '</span>';
491495
}
492496

493497
insertAfter(el, angular.element(iconElText));

dist/jcs-auto-validate.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-auto-validate",
3-
"version": "1.19.3",
3+
"version": "1.19.4",
44
"description": "An automatic validation module for AngularJS which gets rid of excess html in favour of dynamic element modification to notify the user of validation errors",
55
"main": "angular-auto-validate.min.js",
66
"scripts": {

src/services/bootstrap3ElementModifier.js

+29-29
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,38 @@
11
function Bootstrap3ElementModifierFn($log) {
22
var addedCustomCss = false,
3-
customCss = [
4-
'<style>' +
5-
'.glyphicon-spin-jcs {' +
6-
'-webkit-animation: spin 1000ms infinite linear;' +
7-
'animation: spin 1000ms infinite linear;' +
8-
'}' +
9-
'@-webkit-keyframes spin {' +
10-
'0% {' +
11-
'-webkit-transform: rotate(0deg);' +
12-
'transform: rotate(0deg);' +
13-
'}' +
14-
'100% {' +
15-
'-webkit-transform: rotate(359deg);' +
16-
'transform: rotate(359deg);' +
17-
'}' +
18-
'}' +
19-
'@keyframes spin {' +
20-
'0% {' +
21-
'-webkit-transform: rotate(0deg);' +
22-
'transform: rotate(0deg);' +
23-
'}' +
24-
'100% {' +
25-
'-webkit-transform: rotate(359deg);' +
26-
'transform: rotate(359deg);' +
27-
'}' +
28-
'}' +
29-
'</style>'
30-
].join('');
3+
customCss = [
4+
'<style>' +
5+
'.glyphicon-spin-jcs {' +
6+
'-webkit-animation: spin 1000ms infinite linear;' +
7+
'animation: spin 1000ms infinite linear;' +
8+
'}' +
9+
'@-webkit-keyframes spin {' +
10+
'0% {' +
11+
'-webkit-transform: rotate(0deg);' +
12+
'transform: rotate(0deg);' +
13+
'}' +
14+
'100% {' +
15+
'-webkit-transform: rotate(359deg);' +
16+
'transform: rotate(359deg);' +
17+
'}' +
18+
'}' +
19+
'@keyframes spin {' +
20+
'0% {' +
21+
'-webkit-transform: rotate(0deg);' +
22+
'transform: rotate(0deg);' +
23+
'}' +
24+
'100% {' +
25+
'-webkit-transform: rotate(359deg);' +
26+
'transform: rotate(359deg);' +
27+
'}' +
28+
'}' +
29+
'</style>'
30+
].join('');
3131

3232
var reset = function (el) {
3333
if (addedCustomCss === false) {
3434
angular.element(document.body).append(angular.element(customCss));
35-
addedCustomvCss = true;
35+
addedCustomCss = true;
3636
}
3737

3838
angular.forEach(el.find('span'), function (spanEl) {

0 commit comments

Comments
 (0)