Skip to content

Calendar: Add working year / month select demo #1803

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 17, 2017

Conversation

fnagel
Copy link
Member

@fnagel fnagel commented Apr 11, 2017

No description provided.

Copy link
Member

@scottgonzalez scottgonzalez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's do this as an extension instead and add the old options back.

return title
.append( month )
.append( " " )
.append( year );
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't this order locale specific?

changeYear: true
$.widget( "custom.calendarWithSelect", $.ui.calendar, {
_buildTitle: function() {
var title = $( "<div>", { role: "alert", id: this.gridId + "-month-label" } ),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm...Can we come up with a way to avoid using internal properties like this.gridId?

}
} );

for ( ;i < 12; i++ ) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

space after semicolon

@fnagel fnagel force-pushed the datepicker-month-year-select branch from ce6f34a to 2ac81ad Compare April 12, 2017 21:43
@fnagel fnagel requested a review from jzaefferer April 12, 2017 21:44
@fnagel fnagel force-pushed the datepicker-month-year-select branch from 2ac81ad to d6de67a Compare April 14, 2017 09:32
@fnagel
Copy link
Member Author

fnagel commented Apr 14, 2017

@scottgonzalez Updated the branch. Please review!

Tests fail again, but this time I'm not able to reproduce it locally :-/

Copy link
Member

@scottgonzalez scottgonzalez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm fine with merging this even with the failing test since we have a plan to address that. You can just comment out that test for now so that we can identify new failures easily.

@fnagel fnagel merged commit d6de67a into jquery:datepicker May 17, 2017
@mgol mgol added this to the 1.13 milestone Jun 10, 2020
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.

3 participants