Skip to content

Commit f4e1d75

Browse files
committed
AC-8077::Upgrade JQuery Validation Plugin library to the latest version
1 parent 06d0ed7 commit f4e1d75

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

lib/web/jquery/jquery.validate.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -783,7 +783,7 @@
783783
normalizer = this.settings.normalizer;
784784
}
785785

786-
// If normalizer is defined, then call it to retreive the changed value instead
786+
// If normalizer is defined, then call it to the changed value instead
787787
// of using the real one.
788788
// Note that `this` in the normalizer is `element`.
789789
if ( normalizer ) {
@@ -1241,17 +1241,6 @@
12411241
}
12421242
},
12431243

1244-
metadataRules: function (element) {
1245-
if (!$.metadata) {
1246-
return {};
1247-
}
1248-
1249-
var meta = $.data(element.form, 'validator').settings.meta;
1250-
return meta ?
1251-
$(element).metadata()[meta] :
1252-
$(element).metadata();
1253-
},
1254-
12551244
attributeRules: function( element ) {
12561245
var rules = {},
12571246
$element = $( element ),
@@ -1287,6 +1276,17 @@
12871276
return rules;
12881277
},
12891278

1279+
metadataRules: function (element) {
1280+
if (!$.metadata) {
1281+
return {};
1282+
}
1283+
1284+
var meta = $.data(element.form, 'validator').settings.meta;
1285+
return meta ?
1286+
$(element).metadata()[meta] :
1287+
$(element).metadata();
1288+
},
1289+
12901290
dataRules: function( element ) {
12911291
var rules = {},
12921292
$element = $( element ),

0 commit comments

Comments
 (0)