From 672f3d40be83d9e380fd7be4b674d5e8d5fa36de Mon Sep 17 00:00:00 2001 From: HuabingZhao Date: Tue, 25 Jul 2017 15:18:33 +0800 Subject: Divide the MSB source codes into two repos Change-Id: Ie76d545b214a8ce5191f215350a623e1529983d9 Issue-id: MSB-5 Signed-off-by: HuabingZhao --- .../jquery-validation/localization/methods_fi.js | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 apiroute/apiroute-service/src/main/resources/iui-route/js/jquery-validation/localization/methods_fi.js (limited to 'apiroute/apiroute-service/src/main/resources/iui-route/js/jquery-validation/localization/methods_fi.js') diff --git a/apiroute/apiroute-service/src/main/resources/iui-route/js/jquery-validation/localization/methods_fi.js b/apiroute/apiroute-service/src/main/resources/iui-route/js/jquery-validation/localization/methods_fi.js new file mode 100644 index 0000000..44b3e36 --- /dev/null +++ b/apiroute/apiroute-service/src/main/resources/iui-route/js/jquery-validation/localization/methods_fi.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: FI + */ +$.extend($.validator.methods, { + date: function(value, element) { + return this.optional(element) || /^\d{1,2}\.\d{1,2}\.\d{4}$/.test(value); + }, + number: function(value, element) { + return this.optional(element) || /^-?(?:\d+)(?:,\d+)?$/.test(value); + } +}); + +})); \ No newline at end of file -- cgit 1.2.3-korg