Ticket #4536 (closed bug: fixed)

Opened 5 years ago

Last modified 5 years ago

datepicker maxDate doesn't take into account column layout

Reported by: davidascher Owned by:
Priority: minor Milestone: 1.8
Component: ui.datepicker Version: 1.7.1
Keywords: grids Cc:
Blocking: Blocked by:

Description

The following code:

      $(function(){
        $('#datepicker').datepicker({
          minDate: new Date(2009, 0, 1, 0),
          maxDate: new Date(2009, 11, 31),
          defaultDate: new Date(2009, 1, 0),
          numberOfMonths: [3,4],
          inline: true,
          changeMonth: false,
          hideIfNoPrefNext: true,
        });
      });

correctly displays a year's worth of calendars, but it shouldn't allow "next". Instead, it allows scrolling until the last month is the one in the top-right of the grid.

Looks like the "next" button disabling should use the last month in the grid, not the last month in the row.

Change History

comment:1 Changed 5 years ago by joern.zaefferer

  • Milestone changed from TBD to 1.8

comment:2 Changed 5 years ago by kbwood

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

Fixed in r2826.

Note: See TracTickets for help on using tickets.