2014-04-16 01:48:10 +02:00
|
|
|
(function( factory ) {
|
|
|
|
if ( typeof define === "function" && define.amd ) {
|
|
|
|
define( ["jquery", "../jquery.validate"], factory );
|
|
|
|
} else {
|
|
|
|
factory( jQuery );
|
|
|
|
}
|
|
|
|
}(function( $ ) {
|
|
|
|
|
2013-03-19 00:06:47 +01:00
|
|
|
/*
|
|
|
|
* Localized default methods for the jQuery validation plugin.
|
|
|
|
* Locale: DE
|
|
|
|
*/
|
2014-04-16 01:48:10 +02:00
|
|
|
$.extend($.validator.methods, {
|
2013-03-19 00:06:47 +01:00
|
|
|
date: function(value, element) {
|
|
|
|
return this.optional(element) || /^\d\d?\.\d\d?\.\d\d\d?\d?$/.test(value);
|
|
|
|
},
|
|
|
|
number: function(value, element) {
|
|
|
|
return this.optional(element) || /^-?(?:\d+|\d{1,3}(?:\.\d{3})+)(?:,\d+)?$/.test(value);
|
|
|
|
}
|
2014-04-16 01:48:10 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
}));
|