Skip to content

Fixed #6225 - Inline datepicker and showCurrentAtPos#571

Closed
amh-mw wants to merge 1 commit intojquery:masterfrom
amh-mw:master
Closed

Fixed #6225 - Inline datepicker and showCurrentAtPos#571
amh-mw wants to merge 1 commit intojquery:masterfrom
amh-mw:master

Conversation

@amh-mw
Copy link
Copy Markdown

@amh-mw amh-mw commented Jan 13, 2012

Datepicker: Subtract showCurrentAtPos from currentMonth instead of drawMonth. Fixed #6225 - Inline datepicker and showCurrentAtPos

…awMonth. Fixed #6225 - Inline datepicker and showCurrentAtPos
@amh-mw
Copy link
Copy Markdown
Author

amh-mw commented Jan 17, 2012

Blah. This fixes selecting dates, but introduces a new bug -- the forward/back and droplist navigation no longer work.

@amh-mw amh-mw closed this Jan 17, 2012
@amh-mw
Copy link
Copy Markdown
Author

amh-mw commented Jan 17, 2012

I reverted 16757d5 and instead worked around the problem with:

onSelect: function(dateText, datePicker) {
datePicker.drawMonth = datePicker.currentMonth;
}

@karlforshaw
Copy link
Copy Markdown

This only works when you are dealing with a single month, do you have a solution for when four months are displayed?

@amh-mw
Copy link
Copy Markdown
Author

amh-mw commented Apr 25, 2012

We use the datepicker in a three-month view, so I think you may be bumping into something else? We did revise our workaround to deal with year boundaries:

onSelect: function(dateText, datePicker) {
    datePicker.drawMonth = datePicker.currentMonth;
    datePicker.drawYear = datePicker.currentYear;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants