Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 1 | espaco | 1 | (function( factory ) { |
| 2 | if ( typeof define === "function" && define.amd ) { |
||
| 3 | define( ["jquery", "../jquery.validate"], factory ); |
||
| 4 | } else { |
||
| 5 | factory( jQuery ); |
||
| 6 | } |
||
| 7 | }(function( $ ) { |
||
| 8 | |||
| 9 | /* |
||
| 10 | * Localized default methods for the jQuery validation plugin. |
||
| 11 | * Locale: PT_BR |
||
| 12 | */ |
||
| 13 | $.extend($.validator.methods, { |
||
| 14 | date: function(value, element) { |
||
| 15 | return this.optional(element) || /^\d\d?\/\d\d?\/\d\d\d?\d?$/.test(value); |
||
| 16 | } |
||
| 17 | }); |
||
| 18 | |||
| 19 | })); |