Ticket #2593 (closed enhancement: fixed)

Opened 7 years ago

Last modified 5 years ago

jquery.datepicker using months instead of prev and next

Reported by: atlithorn Owned by: grabanski
Priority: trivial Milestone: 1.5.1
Component: ui.datepicker Version: 1.5
Keywords: datepicker Cc:
Blocking: Blocked by:

Description

We needed to replace prev and next links with corresponding month names. If you are interested please find included a patch to enable this behaviour. We enable this feature by setting prevText/nextText to null in the options. We also needed to disable currentText so setting that option to null simply blanks the currentText link

Attachments

ui.datepicker.patch Download (1.8 KB) - added by atlithorn 7 years ago.
patch to version 3.4 to enable monthnames instead of prev and next

Change History

Changed 7 years ago by atlithorn

patch to version 3.4 to enable monthnames instead of prev and next

comment:1 Changed 7 years ago by atlithorn

We really do not want to have to change the source but because there is no 'beforeShowMonth' callback (could be at the beginning of _updateDatePicker... and we could update prevText/nextText manually there) we were forced to go this route.

comment:2 Changed 7 years ago by paul

  • Owner changed from paul to iMarc

comment:3 Changed 7 years ago by anonymous

  • Milestone 1.2.4 deleted

Milestone 1.2.4 deleted

comment:4 Changed 7 years ago by paul

  • Version changed from 1.2.3 to 1.5b4
  • Component changed from ui.core to ui.datepicker

comment:5 Changed 7 years ago by paul

  • Owner changed from iMarc to grabanski
  • Status changed from new to assigned

comment:6 Changed 7 years ago by kbwood

Fixed 17 June 2008. Set the navigationAsDateFormat setting to true to be able to use any of the datepicker date formatting characters within the prev/current/next texts. For example: $("#misc").datepicker({navigationAsDateFormat: true, prevText: "<M", currentText: "M y", nextText: "M>"}); shows the short month names.

comment:7 Changed 7 years ago by kbwood

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

comment:8 Changed 6 years ago by rdworth

  • Version changed from 1.5b4 to 1.5
  • Milestone set to 1.5.1
Note: See TracTickets for help on using tickets.