Last change
on this file since 11097 was
11017,
checked in by Henrik Bettermann, 11 years ago
|
Use jquery-ui for datepicker (only!).
This is a temporary solution. jquery-ui should not be loaded if datepicker isn't used. The same holds for datatables.
|
File size:
1.0 KB
|
Rev | Line | |
---|
[11017] | 1 | $(function() { |
---|
| 2 | $( ".datepicker" ).datepicker({ dateFormat: 'yy-mm-dd', |
---|
| 3 | duration: 'fast' |
---|
| 4 | }); |
---|
| 5 | }); |
---|
| 6 | |
---|
| 7 | $(function() { |
---|
| 8 | $( ".datepicker-le" ).datepicker({dateFormat: 'dd/mm/yy', |
---|
| 9 | duration: 'fast' |
---|
| 10 | }); |
---|
| 11 | }); |
---|
| 12 | |
---|
| 13 | $(function() { |
---|
| 14 | $( ".datepicker-de" ).datepicker({dateFormat: 'dd.mm.yy', |
---|
| 15 | duration: 'fast' |
---|
| 16 | }); |
---|
| 17 | }); |
---|
| 18 | |
---|
| 19 | $(function() { |
---|
| 20 | $( ".datepicker-us" ).datepicker({dateFormat: 'mm/dd/yy', |
---|
| 21 | duration: 'fast' |
---|
| 22 | }); |
---|
| 23 | }); |
---|
| 24 | |
---|
| 25 | $(function() { |
---|
| 26 | $( ".datepicker-year" ).datepicker({ dateFormat: 'yy-mm-dd', |
---|
| 27 | duration: 'fast', |
---|
| 28 | changeYear: true, |
---|
| 29 | yearRange: '1900:2020' |
---|
| 30 | }); |
---|
| 31 | }); |
---|
| 32 | |
---|
| 33 | $(function() { |
---|
| 34 | $( ".datepicker-le-year" ).datepicker({dateFormat: 'dd/mm/yy', |
---|
| 35 | duration: 'fast', |
---|
| 36 | changeYear: true, |
---|
| 37 | yearRange: '1900:2020' |
---|
| 38 | }); |
---|
| 39 | }); |
---|
| 40 | |
---|
| 41 | $(function() { |
---|
| 42 | $( ".datepicker-de-year" ).datepicker({dateFormat: 'dd.mm.yy', |
---|
| 43 | duration: 'fast', |
---|
| 44 | changeYear: true, |
---|
| 45 | yearRange: '1900:2020' |
---|
| 46 | }); |
---|
| 47 | }); |
---|
| 48 | |
---|
| 49 | $(function() { |
---|
| 50 | $( ".datepicker-us-year" ).datepicker({dateFormat: 'mm/dd/yy', |
---|
| 51 | duration: 'fast', |
---|
| 52 | changeYear: true, |
---|
| 53 | yearRange: '1900:2020' |
---|
| 54 | }); |
---|
| 55 | }); |
---|
Note: See
TracBrowser for help on using the repository browser.