Opened 15 years ago

Closed 15 years ago

Last modified 13 years ago

#2593 closed enhancement (fixed)

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:
Blocked by: Blocking:

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 (1)

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

Download all attachments as: .zip

Change History (9)

Changed 15 years ago by atlithorn

Attachment: ui.datepicker.patch added

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

comment:1 Changed 15 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 15 years ago by paul

Owner: changed from paul to iMarc

comment:3 Changed 15 years ago by (none)

Milestone: 1.2.4

Milestone 1.2.4 deleted

comment:4 Changed 15 years ago by paul

Component: ui.coreui.datepicker
Version: 1.2.31.5b4

comment:5 Changed 15 years ago by paul

Owner: changed from iMarc to grabanski
Status: newassigned

comment:6 Changed 15 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 15 years ago by kbwood

Resolution: fixed
Status: assignedclosed

comment:8 Changed 15 years ago by rdworth

Milestone: 1.5.1
Version: 1.5b41.5
Note: See TracTickets for help on using tickets.