diff options
author | 2016-08-13 09:04:30 +0000 | |
---|---|---|
committer | 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_pt.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_pt.js')
-rw-r--r-- | apiroute/apiroute-service/src/main/resources/iui-route/js/jquery-validation/localization/methods_pt.js | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/apiroute/apiroute-service/src/main/resources/iui-route/js/jquery-validation/localization/methods_pt.js b/apiroute/apiroute-service/src/main/resources/iui-route/js/jquery-validation/localization/methods_pt.js new file mode 100644 index 0000000..d06ccec --- /dev/null +++ b/apiroute/apiroute-service/src/main/resources/iui-route/js/jquery-validation/localization/methods_pt.js @@ -0,0 +1,19 @@ +(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: PT_BR + */ +$.extend($.validator.methods, { + date: function(value, element) { + return this.optional(element) || /^\d\d?\/\d\d?\/\d\d\d?\d?$/.test(value); + } +}); + +}));
\ No newline at end of file |