Ticket #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: | |
| 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
Change History
Changed 4 years ago by atlithorn
-
attachment
ui.datepicker.patch
added
comment:1 Changed 4 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:4 Changed 4 years ago by paul
- Version changed from 1.2.3 to 1.5b4
- Component changed from ui.core to ui.datepicker
comment:5 Changed 4 years ago by paul
- Owner changed from iMarc to grabanski
- Status changed from new to assigned
comment:6 Changed 4 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.


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