Skip to content
This repository was archived by the owner on Sep 28, 2019. It is now read-only.

Commit 731f7e7

Browse files
committed
Update to 1.7.21
1 parent 116aa9a commit 731f7e7

9 files changed

+19
-14
lines changed

Scripts/jcs-auto-validate.js

+10-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* angular-auto-validate - v1.4.20 - 2014-09-11
2+
* angular-auto-validate - v1.4.20 - 2014-10-16
33
* https://github.com/jonsamwell/angular-auto-validate
44
* Copyright (c) 2014 Jon Samwell (http://www.jonsamwell.com)
55
*/
@@ -481,7 +481,7 @@
481481
function ($q, $http) {
482482
var currentCulture = 'en-gb',
483483

484-
i18nFileRootPath = 'js/angular-auto-validate/dist/lang',
484+
i18nFileRootPath = 'Scripts/lang',
485485

486486
cultureRetrievalPromise,
487487

@@ -499,7 +499,7 @@
499499
* Set the root path to the il8n files on the server
500500
*
501501
* @param {String} rootPath - The root path on the server to the il8n file - this defaults
502-
* to 'js/angular-auto-validate/lang/'
502+
* to 'Scripts/lang/'
503503
*/
504504
setI18nFileRootPath = function (rootPath) {
505505
i18nFileRootPath = rootPath;
@@ -997,9 +997,9 @@
997997
'jcs-debounce',
998998
function ($timeout, $delegate, validationManager, debounce) {
999999
var directive = $delegate[0],
1000-
link = directive.link;
1000+
link = directive.link || directive.compile;
10011001

1002-
directive.compile = function () {
1002+
directive.compile = function (el) {
10031003
return function (scope, element, attrs, ctrls) {
10041004
var ngModelCtrl = ctrls[0],
10051005
frmCtrl = ctrls[1],
@@ -1011,6 +1011,11 @@
10111011
validationManager.validateElement(ngModelCtrl, element);
10121012
}, 100);
10131013

1014+
// in the RC of 1.3 there is no directive.link only the directive.compile which
1015+
// needs to be invoked to get at the link functions.
1016+
if (supportsNgModelOptions && angular.isFunction(link)) {
1017+
link = link(el);
1018+
}
10141019

10151020
if (link.pre) {
10161021
link.pre.apply(this, arguments);

Scripts/jcs-auto-validate.min.js

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

Scripts/jcs-auto-validate.min.js.map

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

angular-auto-validate.1.6.20.nuspec angular-auto-validate.1.7.21.nuspec

+6-6
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
33
<metadata>
44
<id>angular-auto-validate</id>
5-
<version>1.6.20</version>
5+
<version>1.7.21</version>
66
<title>Angular Dynamic Validation Module</title>
77
<authors>Jon C. Samwell,Jaans</authors>
88
<owners>Jon C. Samwell</owners>
@@ -18,11 +18,11 @@ https://github.com/jonsamwell/angular-auto-validate/tree/master/dist</releaseNot
1818
<tags>angular angularjs SPA validation dynamic errors</tags>
1919
</metadata>
2020
<files>
21-
<file src="Scripts\i18n\jcs-auto-validate_de-de.json" target="content\Scripts\i18n\jcs-auto-validate_de-de.json" />
22-
<file src="Scripts\i18n\jcs-auto-validate_en-gb.json" target="content\Scripts\i18n\jcs-auto-validate_en-gb.json" />
23-
<file src="Scripts\i18n\jcs-auto-validate_en-us.json" target="content\Scripts\i18n\jcs-auto-validate_en-us.json" />
24-
<file src="Scripts\i18n\jcs-auto-validate_fr-fr.json" target="content\Scripts\i18n\jcs-auto-validate_fr-fr.json" />
25-
<file src="Scripts\i18n\jcs-auto-validate_ru-ru.json" target="content\Scripts\i18n\jcs-auto-validate_ru-ru.json" />
21+
<file src="Scripts\lang\jcs-auto-validate_de-de.json" target="content\Scripts\lang\jcs-auto-validate_de-de.json" />
22+
<file src="Scripts\lang\jcs-auto-validate_en-gb.json" target="content\Scripts\lang\jcs-auto-validate_en-gb.json" />
23+
<file src="Scripts\lang\jcs-auto-validate_en-us.json" target="content\Scripts\lang\jcs-auto-validate_en-us.json" />
24+
<file src="Scripts\lang\jcs-auto-validate_fr-fr.json" target="content\Scripts\lang\jcs-auto-validate_fr-fr.json" />
25+
<file src="Scripts\lang\jcs-auto-validate_ru-ru.json" target="content\Scripts\lang\jcs-auto-validate_ru-ru.json" />
2626
<file src="Scripts\jcs-auto-validate.js" target="content\Scripts\jcs-auto-validate.js" />
2727
<file src="Scripts\jcs-auto-validate.min.js" target="content\Scripts\jcs-auto-validate.min.js" />
2828
<file src="Scripts\jcs-auto-validate.min.js.map" target="content\Scripts\jcs-auto-validate.min.js.map" />

0 commit comments

Comments
 (0)