Changeset 6060 for main/waeup.sirp/trunk


Ignore:
Timestamp:
12 May 2011, 06:09:06 (14 years ago)
Author:
Henrik Bettermann
Message:

Use correct year format, Capital Y instead of y.

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  
    11$(function() {
    2   $( ".datepicker" ).datepicker({ dateFormat: 'yyyy-mm-dd',
     2  $( ".datepicker" ).datepicker({ dateFormat: 'yy-mm-dd',
    33                                  duration: 'fast'
    44  });
     
    66
    77$(function() {
    8   $( ".datepicker-le" ).datepicker({dateFormat: 'dd/mm/yyyy',
     8  $( ".datepicker-le" ).datepicker({dateFormat: 'dd/mm/yy',
    99        duration: 'fast'
    1010        });
     
    1212
    1313$(function() {
    14   $( ".datepicker-de" ).datepicker({dateFormat: 'dd.mm.yyyy',
     14  $( ".datepicker-de" ).datepicker({dateFormat: 'dd.mm.yy',
    1515        duration: 'fast'
    1616        });
     
    1818
    1919$(function() {
    20   $( ".datepicker-us" ).datepicker({dateFormat: 'mm/dd/yyyy',
     20  $( ".datepicker-us" ).datepicker({dateFormat: 'mm/dd/yy',
    2121        duration: 'fast'
    2222        });
     
    2424
    2525$(function() {
    26   $( ".datepicker-year" ).datepicker({ dateFormat: 'yyyy-mm-dd',
     26  $( ".datepicker-year" ).datepicker({ dateFormat: 'yy-mm-dd',
    2727        duration: 'fast',
    2828        changeYear: true,
     
    3232
    3333$(function() {
    34   $( ".datepicker-le-year" ).datepicker({dateFormat: 'dd/mm/yyyy',
     34  $( ".datepicker-le-year" ).datepicker({dateFormat: 'dd/mm/yy',
    3535        duration: 'fast',
    3636        changeYear: true,
     
    4040
    4141$(function() {
    42   $( ".datepicker-de-year" ).datepicker({dateFormat: 'dd.mm.yyyy',
     42  $( ".datepicker-de-year" ).datepicker({dateFormat: 'dd.mm.yy',
    4343        duration: 'fast',
    4444        changeYear: true,
     
    4848
    4949$(function() {
    50   $( ".datepicker-us-year" ).datepicker({dateFormat: 'mm/dd/yyyy',
     50  $( ".datepicker-us-year" ).datepicker({dateFormat: 'mm/dd/yy',
    5151        duration: 'fast',
    5252        changeYear: true,
  • main/waeup.sirp/trunk/src/waeup/sirp/widgets/datewidget.py

    r6057 r6060  
    103103#: with the same output).
    104104DATE_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'),
    113113    }
    114114def FriendlyDateWidget(format):
     
    137137    dict. Default is ``le`` (little endian; DD/MM/YYYY).
    138138
    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``.`
    141142    """
    142143    css_class, date_format = DATE_FORMATS.get(format, DATE_FORMATS['le'])
Note: See TracChangeset for help on using the changeset viewer.