diff options
author | Huabing Zhao <zhao.huabing@zte.com.cn> | 2016-08-13 09:04:30 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@open-o.org> | 2016-08-13 09:04:30 +0000 |
commit | 230628860edf5ff489dd59e299d35c80d1329a5d (patch) | |
tree | ff51edcca2435a31c0cc7ee22b70348c74aa118d /apiroute/apiroute-service/src/main/resources/iui-route/js/jquery-validation/localization/methods_de.js | |
parent | 1ae0c8d11018ac804be96062c34fcf0d9015ef35 (diff) | |
parent | 4ed15bda06c8e9a407c12d527b8224737ba339d5 (diff) |
Merge "Initial code import"
Diffstat (limited to 'apiroute/apiroute-service/src/main/resources/iui-route/js/jquery-validation/localization/methods_de.js')
-rw-r--r-- | apiroute/apiroute-service/src/main/resources/iui-route/js/jquery-validation/localization/methods_de.js | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/apiroute/apiroute-service/src/main/resources/iui-route/js/jquery-validation/localization/methods_de.js b/apiroute/apiroute-service/src/main/resources/iui-route/js/jquery-validation/localization/methods_de.js new file mode 100644 index 0000000..470133e --- /dev/null +++ b/apiroute/apiroute-service/src/main/resources/iui-route/js/jquery-validation/localization/methods_de.js @@ -0,0 +1,22 @@ +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + define( ["jquery", "../jquery.validate"], factory ); + } else { + factory( jQuery ); + } +}(function( $ ) { + +/* + * Localized default methods for the jQuery validation plugin. + * Locale: DE + */ +$.extend($.validator.methods, { + 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); + } +}); + +}));
\ No newline at end of file |