Skip to content

Commit 01e6251

Browse files
committed
Update doc URLs
1 parent 80fd21e commit 01e6251

File tree

1 file changed

+31
-31
lines changed

1 file changed

+31
-31
lines changed

jquery.validate.js

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
/*!
22
* jQuery Validation Plugin 1.12.0pre
33
*
4-
* http://bassistance.de/jquery-plugins/jquery-plugin-validation/
5-
* http://docs.jquery.com/Plugins/Validation
4+
* http://jqueryvalidation.org//
65
*
76
* Copyright 2013 Jörn Zaefferer
87
* Released under the MIT license:
@@ -12,7 +11,7 @@
1211
(function($) {
1312

1413
$.extend($.fn, {
15-
// http://docs.jquery.com/Plugins/Validation/validate
14+
// http://jqueryvalidation.org/validate/
1615
validate: function( options ) {
1716

1817
// if nothing is selected, return nothing; can't chain anyway
@@ -95,7 +94,7 @@ $.extend($.fn, {
9594

9695
return validator;
9796
},
98-
// http://docs.jquery.com/Plugins/Validation/valid
97+
// http://jqueryvalidation.org/valid/
9998
valid: function() {
10099
if ( $(this[0]).is("form")) {
101100
return this.validate().form();
@@ -118,7 +117,7 @@ $.extend($.fn, {
118117
});
119118
return result;
120119
},
121-
// http://docs.jquery.com/Plugins/Validation/rules
120+
// http://jqueryvalidation.org/rules/
122121
rules: function( command, argument ) {
123122
var element = this[0];
124123

@@ -172,11 +171,11 @@ $.extend($.fn, {
172171

173172
// Custom selectors
174173
$.extend($.expr[":"], {
175-
// http://docs.jquery.com/Plugins/Validation/blank
174+
// http://jqueryvalidation.org/blank-selector/
176175
blank: function( a ) { return !$.trim("" + $(a).val()); },
177-
// http://docs.jquery.com/Plugins/Validation/filled
176+
// http://jqueryvalidation.org/filled-selector/
178177
filled: function( a ) { return !!$.trim("" + $(a).val()); },
179-
// http://docs.jquery.com/Plugins/Validation/unchecked
178+
// http://jqueryvalidation.org/unchecked-selector/
180179
unchecked: function( a ) { return !$(a).prop("checked"); }
181180
});
182181

@@ -187,6 +186,7 @@ $.validator = function( options, form ) {
187186
this.init();
188187
};
189188

189+
// http://jqueryvalidation.org/jQuery.validator.format/
190190
$.validator.format = function( source, params ) {
191191
if ( arguments.length === 1 ) {
192192
return function() {
@@ -273,7 +273,7 @@ $.extend($.validator, {
273273
}
274274
},
275275

276-
// http://docs.jquery.com/Plugins/Validation/Validator/setDefaults
276+
// http://jqueryvalidation.org/jQuery.validator.setDefaults/
277277
setDefaults: function( settings ) {
278278
$.extend( $.validator.defaults, settings );
279279
},
@@ -347,7 +347,7 @@ $.extend($.validator, {
347347
}
348348
},
349349

350-
// http://docs.jquery.com/Plugins/Validation/Validator/form
350+
// http://jqueryvalidation.org/Validator.form/
351351
form: function() {
352352
this.checkForm();
353353
$.extend(this.submitted, this.errorMap);
@@ -367,7 +367,7 @@ $.extend($.validator, {
367367
return this.valid();
368368
},
369369

370-
// http://docs.jquery.com/Plugins/Validation/Validator/element
370+
// http://jqueryvalidation.org/Validator.element/
371371
element: function( element ) {
372372
element = this.validationTargetFor( this.clean( element ) );
373373
this.lastElement = element;
@@ -387,7 +387,7 @@ $.extend($.validator, {
387387
return result;
388388
},
389389

390-
// http://docs.jquery.com/Plugins/Validation/Validator/showErrors
390+
// http://jqueryvalidation.org/Validator.showErrors/
391391
showErrors: function( errors ) {
392392
if ( errors ) {
393393
// add items to error list and map
@@ -411,7 +411,7 @@ $.extend($.validator, {
411411
}
412412
},
413413

414-
// http://docs.jquery.com/Plugins/Validation/Validator/resetForm
414+
// http://jqueryvalidation.org/Validator.resetForm/
415415
resetForm: function() {
416416
if ( $.fn.resetForm ) {
417417
$(this.currentForm).resetForm();
@@ -981,7 +981,7 @@ $.extend($.validator, {
981981
return data;
982982
},
983983

984-
// http://docs.jquery.com/Plugins/Validation/Validator/addMethod
984+
// http://jqueryvalidation.org/jQuery.validator.addMethod/
985985
addMethod: function( name, method, message ) {
986986
$.validator.methods[name] = method;
987987
$.validator.messages[name] = message !== undefined ? message : $.validator.messages[name];
@@ -992,7 +992,7 @@ $.extend($.validator, {
992992

993993
methods: {
994994

995-
// http://docs.jquery.com/Plugins/Validation/Methods/required
995+
// http://jqueryvalidation.org/required-method/
996996
required: function( value, element, param ) {
997997
// check if dependency is met
998998
if ( !this.depend(param, element) ) {
@@ -1009,40 +1009,40 @@ $.extend($.validator, {
10091009
return $.trim(value).length > 0;
10101010
},
10111011

1012-
// http://docs.jquery.com/Plugins/Validation/Methods/email
1012+
// http://jqueryvalidation.org/email-method/
10131013
email: function( value, element ) {
10141014
// contributed by Scott Gonzalez: http://projects.scottsplayground.com/email_address_validation/
10151015
return this.optional(element) || /^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i.test(value);
10161016
},
10171017

1018-
// http://docs.jquery.com/Plugins/Validation/Methods/url
1018+
// http://jqueryvalidation.org/url-method/
10191019
url: function( value, element ) {
10201020
// contributed by Scott Gonzalez: http://projects.scottsplayground.com/iri/
10211021
return this.optional(element) || /^(https?|s?ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(value);
10221022
},
10231023

1024-
// http://docs.jquery.com/Plugins/Validation/Methods/date
1024+
// http://jqueryvalidation.org/date-method/
10251025
date: function( value, element ) {
10261026
return this.optional(element) || !/Invalid|NaN/.test(new Date(value).toString());
10271027
},
10281028

1029-
// http://docs.jquery.com/Plugins/Validation/Methods/dateISO
1029+
// http://jqueryvalidation.org/dateISO-method/
10301030
dateISO: function( value, element ) {
10311031
return this.optional(element) || /^\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}$/.test(value);
10321032
},
10331033

1034-
// http://docs.jquery.com/Plugins/Validation/Methods/number
1034+
// http://jqueryvalidation.org/number-method/
10351035
number: function( value, element ) {
10361036
return this.optional(element) || /^-?(?:\d+|\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(value);
10371037
},
10381038

1039-
// http://docs.jquery.com/Plugins/Validation/Methods/digits
1039+
// http://jqueryvalidation.org/digits-method/
10401040
digits: function( value, element ) {
10411041
return this.optional(element) || /^\d+$/.test(value);
10421042
},
10431043

1044-
// http://docs.jquery.com/Plugins/Validation/Methods/creditcard
1045-
// based on http://en.wikipedia.org/wiki/Luhn
1044+
// http://jqueryvalidation.org/creditcard-method/
1045+
// based on http://en.wikipedia.org/wiki/Luhn/
10461046
creditcard: function( value, element ) {
10471047
if ( this.optional(element) ) {
10481048
return "dependency-mismatch";
@@ -1072,40 +1072,40 @@ $.extend($.validator, {
10721072
return (nCheck % 10) === 0;
10731073
},
10741074

1075-
// http://docs.jquery.com/Plugins/Validation/Methods/minlength
1075+
// http://jqueryvalidation.org/minlength-method/
10761076
minlength: function( value, element, param ) {
10771077
var length = $.isArray( value ) ? value.length : this.getLength($.trim(value), element);
10781078
return this.optional(element) || length >= param;
10791079
},
10801080

1081-
// http://docs.jquery.com/Plugins/Validation/Methods/maxlength
1081+
// http://jqueryvalidation.org/maxlength-method/
10821082
maxlength: function( value, element, param ) {
10831083
var length = $.isArray( value ) ? value.length : this.getLength($.trim(value), element);
10841084
return this.optional(element) || length <= param;
10851085
},
10861086

1087-
// http://docs.jquery.com/Plugins/Validation/Methods/rangelength
1087+
// http://jqueryvalidation.org/rangelength-method/
10881088
rangelength: function( value, element, param ) {
10891089
var length = $.isArray( value ) ? value.length : this.getLength($.trim(value), element);
10901090
return this.optional(element) || ( length >= param[0] && length <= param[1] );
10911091
},
10921092

1093-
// http://docs.jquery.com/Plugins/Validation/Methods/min
1093+
// http://jqueryvalidation.org/min-method/
10941094
min: function( value, element, param ) {
10951095
return this.optional(element) || value >= param;
10961096
},
10971097

1098-
// http://docs.jquery.com/Plugins/Validation/Methods/max
1098+
// http://jqueryvalidation.org/max-method/
10991099
max: function( value, element, param ) {
11001100
return this.optional(element) || value <= param;
11011101
},
11021102

1103-
// http://docs.jquery.com/Plugins/Validation/Methods/range
1103+
// http://jqueryvalidation.org/range-method/
11041104
range: function( value, element, param ) {
11051105
return this.optional(element) || ( value >= param[0] && value <= param[1] );
11061106
},
11071107

1108-
// http://docs.jquery.com/Plugins/Validation/Methods/equalTo
1108+
// http://jqueryvalidation.org/equalTo-method/
11091109
equalTo: function( value, element, param ) {
11101110
// bind to the blur event of the target in order to revalidate whenever the target field is updated
11111111
// TODO find a way to bind the event just once, avoiding the unbind-rebind overhead
@@ -1118,7 +1118,7 @@ $.extend($.validator, {
11181118
return value === target.val();
11191119
},
11201120

1121-
// http://docs.jquery.com/Plugins/Validation/Methods/remote
1121+
// http://jqueryvalidation.org/remote-method/
11221122
remote: function( value, element, param ) {
11231123
if ( this.optional(element) ) {
11241124
return "dependency-mismatch";

0 commit comments

Comments
 (0)