Opened 8 years ago

Closed 7 years ago

Last modified 4 years ago

#3526 closed bug (fixed)

Default Year is 1998 with options: changeYear:false, dateFormat: 'dd.mm.'

Reported by: insekticid Owned by: grabanski
Priority: major Milestone:
Component: ui.datepicker Version: 1.6rc2
Keywords: Cc:
Blocked by: Blocking:

Description

$('#datepicker').datepicker({'minDate':$.datepicker.parseDate("yy-mm-dd", "2008-10-29"),'maxDate':$.datepicker.parseDate("yy-mm-dd", "2008-11-06"),'changeYear':false,'dateFormat':'mm.dd.'});

There is coloring problem with selected date, when I set limits for datepicker (date range), disable changeYear and set format to 'dd.mm.'

range is 2008-10-29 - 2008-11-06 I set date to '10-29' and open the datepicker, but there is no TABLE -> TD cell with class 'ui-datepicker-current-day'. Why? because default year is not 2008 (what I expect), but 1998!

So date in datepicker is 1998-10-29 instead 2008-10-29

Change History (2)

comment:1 Changed 7 years ago by kbwood

  • Resolution set to fixed
  • Status changed from new to closed

The year is now defaulted to the current one if not set in the input field.

comment:2 Changed 4 years ago by scottgonzalez

  • Milestone TBD deleted

Milestone TBD deleted

Note: See TracTickets for help on using tickets.