Sha256: f16d811e7422d159a9a452db9b8a094225853df2e3b353c6c14dcb2c1e0d3b0f

Contents?: true

Size: 375 Bytes

Versions: 2

Compression:

Stored size: 375 Bytes

Contents

/*
 * Localized default methods for the jQuery validation plugin.
 * Locale: DE
 */
jQuery.extend(jQuery.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);
	}
});

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
ajax_validation-0.0.1 app/assets/javascripts/ajax_validation/jquery.validate.localization/methods_de.js
jquery-validation-rails-1.12.0 app/assets/javascripts/jquery.validate.localization/methods_de.js