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

Commit

Permalink
Updated version number
Browse files Browse the repository at this point in the history
  • Loading branch information
jonsamwell committed Jun 16, 2016
1 parent 89a94c6 commit e2ce20b
Show file tree
Hide file tree
Showing 5 changed files with 69 additions and 65 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-auto-validate",
"version": "1.19.3",
"version": "1.19.4",
"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",
"main": "dist/jcs-auto-validate.js",
"keywords": [
Expand Down
68 changes: 36 additions & 32 deletions dist/jcs-auto-validate.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* angular-auto-validate - v1.19.3 - 2016-06-16
* angular-auto-validate - v1.19.4 - 2016-06-16
* https://github.com/jonsamwell/angular-auto-validate
* Copyright (c) 2016 Jon Samwell (http://www.jonsamwell.com)
*/
Expand Down Expand Up @@ -355,38 +355,42 @@ function ValidatorFn() {
angular.module('jcs-autoValidate').provider('validator', ValidatorFn);

function Bootstrap3ElementModifierFn($log) {
var customCss = [
'<style>' +
'.glyphicon-spin-jcs {' +
'-webkit-animation: spin 1000ms infinite linear;' +
'animation: spin 1000ms infinite linear;' +
'}' +
'@-webkit-keyframes spin {' +
'0% {' +
'-webkit-transform: rotate(0deg);' +
'transform: rotate(0deg);' +
'}' +
'100% {' +
'-webkit-transform: rotate(359deg);' +
'transform: rotate(359deg);' +
'}' +
'}' +
'@keyframes spin {' +
'0% {' +
'-webkit-transform: rotate(0deg);' +
'transform: rotate(0deg);' +
'}' +
'100% {' +
'-webkit-transform: rotate(359deg);' +
'transform: rotate(359deg);' +
'}' +
'}' +
'</style>'
].join('');

angular.element(document.body).append(angular.element(customCss));
var addedCustomCss = false,
customCss = [
'<style>' +
'.glyphicon-spin-jcs {' +
'-webkit-animation: spin 1000ms infinite linear;' +
'animation: spin 1000ms infinite linear;' +
'}' +
'@-webkit-keyframes spin {' +
'0% {' +
'-webkit-transform: rotate(0deg);' +
'transform: rotate(0deg);' +
'}' +
'100% {' +
'-webkit-transform: rotate(359deg);' +
'transform: rotate(359deg);' +
'}' +
'}' +
'@keyframes spin {' +
'0% {' +
'-webkit-transform: rotate(0deg);' +
'transform: rotate(0deg);' +
'}' +
'100% {' +
'-webkit-transform: rotate(359deg);' +
'transform: rotate(359deg);' +
'}' +
'}' +
'</style>'
].join('');

var reset = function (el) {
if (addedCustomCss === false) {
angular.element(document.body).append(angular.element(customCss));
addedCustomCss = true;
}

angular.forEach(el.find('span'), function (spanEl) {
spanEl = angular.element(spanEl);
if (spanEl.hasClass('error-msg') || spanEl.hasClass('form-control-feedback') || spanEl.hasClass('control-feedback')) {
Expand Down Expand Up @@ -487,7 +491,7 @@ function Bootstrap3ElementModifierFn($log) {
var iconElText = '<span class="glyphicon glyphicon-ok form-control-feedback"></span>';
if (inputGroupEl.length > 0) {
iconElText = iconElText.replace('form-', '');
iconElText = '<span class="input-group-addon control-feedback">' + iconElText + '</span';
iconElText = '<span class="input-group-addon control-feedback">' + iconElText + '</span>';
}

insertAfter(el, angular.element(iconElText));
Expand Down
4 changes: 2 additions & 2 deletions dist/jcs-auto-validate.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-auto-validate",
"version": "1.19.3",
"version": "1.19.4",
"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",
"main": "angular-auto-validate.min.js",
"scripts": {
Expand Down
58 changes: 29 additions & 29 deletions src/services/bootstrap3ElementModifier.js
Original file line number Diff line number Diff line change
@@ -1,38 +1,38 @@
function Bootstrap3ElementModifierFn($log) {
var addedCustomCss = false,
customCss = [
'<style>' +
'.glyphicon-spin-jcs {' +
'-webkit-animation: spin 1000ms infinite linear;' +
'animation: spin 1000ms infinite linear;' +
'}' +
'@-webkit-keyframes spin {' +
'0% {' +
'-webkit-transform: rotate(0deg);' +
'transform: rotate(0deg);' +
'}' +
'100% {' +
'-webkit-transform: rotate(359deg);' +
'transform: rotate(359deg);' +
'}' +
'}' +
'@keyframes spin {' +
'0% {' +
'-webkit-transform: rotate(0deg);' +
'transform: rotate(0deg);' +
'}' +
'100% {' +
'-webkit-transform: rotate(359deg);' +
'transform: rotate(359deg);' +
'}' +
'}' +
'</style>'
].join('');
customCss = [
'<style>' +
'.glyphicon-spin-jcs {' +
'-webkit-animation: spin 1000ms infinite linear;' +
'animation: spin 1000ms infinite linear;' +
'}' +
'@-webkit-keyframes spin {' +
'0% {' +
'-webkit-transform: rotate(0deg);' +
'transform: rotate(0deg);' +
'}' +
'100% {' +
'-webkit-transform: rotate(359deg);' +
'transform: rotate(359deg);' +
'}' +
'}' +
'@keyframes spin {' +
'0% {' +
'-webkit-transform: rotate(0deg);' +
'transform: rotate(0deg);' +
'}' +
'100% {' +
'-webkit-transform: rotate(359deg);' +
'transform: rotate(359deg);' +
'}' +
'}' +
'</style>'
].join('');

var reset = function (el) {
if (addedCustomCss === false) {
angular.element(document.body).append(angular.element(customCss));
addedCustomvCss = true;
addedCustomCss = true;
}

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

0 comments on commit e2ce20b

Please sign in to comment.