Changeset 6060 for main/waeup.sirp/trunk/src/waeup
- Timestamp:
- 12 May 2011, 06:09:06 (14 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/browser/static/datepicker.js
r6058 r6060 1 1 $(function() { 2 $( ".datepicker" ).datepicker({ dateFormat: 'yy yy-mm-dd',2 $( ".datepicker" ).datepicker({ dateFormat: 'yy-mm-dd', 3 3 duration: 'fast' 4 4 }); … … 6 6 7 7 $(function() { 8 $( ".datepicker-le" ).datepicker({dateFormat: 'dd/mm/yy yy',8 $( ".datepicker-le" ).datepicker({dateFormat: 'dd/mm/yy', 9 9 duration: 'fast' 10 10 }); … … 12 12 13 13 $(function() { 14 $( ".datepicker-de" ).datepicker({dateFormat: 'dd.mm.yy yy',14 $( ".datepicker-de" ).datepicker({dateFormat: 'dd.mm.yy', 15 15 duration: 'fast' 16 16 }); … … 18 18 19 19 $(function() { 20 $( ".datepicker-us" ).datepicker({dateFormat: 'mm/dd/yy yy',20 $( ".datepicker-us" ).datepicker({dateFormat: 'mm/dd/yy', 21 21 duration: 'fast' 22 22 }); … … 24 24 25 25 $(function() { 26 $( ".datepicker-year" ).datepicker({ dateFormat: 'yy yy-mm-dd',26 $( ".datepicker-year" ).datepicker({ dateFormat: 'yy-mm-dd', 27 27 duration: 'fast', 28 28 changeYear: true, … … 32 32 33 33 $(function() { 34 $( ".datepicker-le-year" ).datepicker({dateFormat: 'dd/mm/yy yy',34 $( ".datepicker-le-year" ).datepicker({dateFormat: 'dd/mm/yy', 35 35 duration: 'fast', 36 36 changeYear: true, … … 40 40 41 41 $(function() { 42 $( ".datepicker-de-year" ).datepicker({dateFormat: 'dd.mm.yy yy',42 $( ".datepicker-de-year" ).datepicker({dateFormat: 'dd.mm.yy', 43 43 duration: 'fast', 44 44 changeYear: true, … … 48 48 49 49 $(function() { 50 $( ".datepicker-us-year" ).datepicker({dateFormat: 'mm/dd/yy yy',50 $( ".datepicker-us-year" ).datepicker({dateFormat: 'mm/dd/yy', 51 51 duration: 'fast', 52 52 changeYear: true, -
main/waeup.sirp/trunk/src/waeup/sirp/widgets/datewidget.py
r6057 r6060 103 103 #: with the same output). 104 104 DATE_FORMATS = { 105 'iso': ('datepicker', '% y-%m-%d'),106 'le': ('datepicker-le', '%d/%m/% y'),107 'de': ('datepicker-de', '%d.%m.% y'),108 'us': ('datepicker-us', '%m/%d/% y'),109 'iso-year': ('datepicker-year', '% y-%m-%d'),110 'le-year': ('datepicker-le-year', '%d/%m/% y'),111 'de-year': ('datepicker-de-year', '%d.%m.% y'),112 'us-year': ('datepicker-us-year', '%m/%d/% y'),105 'iso': ('datepicker', '%Y-%m-%d'), 106 'le': ('datepicker-le', '%d/%m/%Y'), 107 'de': ('datepicker-de', '%d.%m.%Y'), 108 'us': ('datepicker-us', '%m/%d/%Y'), 109 'iso-year': ('datepicker-year', '%Y-%m-%d'), 110 'le-year': ('datepicker-le-year', '%d/%m/%Y'), 111 'de-year': ('datepicker-de-year', '%d.%m.%Y'), 112 'us-year': ('datepicker-us-year', '%m/%d/%Y'), 113 113 } 114 114 def FriendlyDateWidget(format): … … 137 137 dict. Default is ``le`` (little endian; DD/MM/YYYY). 138 138 139 Friendly date widgets are rendered with a specialized CSS tag for 140 enabling JavaScript datepickers. 139 This widget is not rendered with a specialized CSS tag for 140 enabling JavaScript datepickers. `css_class` is ignored which means 141 there is nor difference between e.g. ``le`` and ``le-year``.` 141 142 """ 142 143 css_class, date_format = DATE_FORMATS.get(format, DATE_FORMATS['le'])
Note: See TracChangeset for help on using the changeset viewer.