Skip to content

Calendar rebase #1316

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

Closed
wants to merge 26 commits into from
Closed

Calendar rebase #1316

wants to merge 26 commits into from

Conversation

fnagel
Copy link
Member

@fnagel fnagel commented Aug 16, 2014

This replaces #1281, but was itself replaced by #1352.

Fixed unit tests and cleaner history based on Scott's rebase. Unit tests work in latest FF and Chrome but still fail via grunt. @jzaefferer You mentioned an upcoming improvement for asycTests?

@fnagel fnagel mentioned this pull request Aug 16, 2014
<script src="../../ui/position.js"></script>
<script src="../../ui/datepicker.js"></script>
<link rel="stylesheet" href="../demos.css">
<script>
$(function() {
Globalize.locale( "de-DE" );
Copy link
Member

Choose a reason for hiding this comment

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

This line seems to be needed as the German option has the selected attribute. The display is off when you load this demo.

Copy link
Member Author

Choose a reason for hiding this comment

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

Seems valid. See my comment above.

@tjvantoll
Copy link
Member

I made a few comments on the demo but didn't have a chance to really go through this yet. More comments coming later this weekend.

<link rel="stylesheet" href="../demos.css">
<script>
$(function() {
$( "#datepicker" ).datepicker({ minDate: -20, maxDate: "+1M +10D" });
var now = new Date(),
Copy link
Member

Choose a reason for hiding this comment

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

This block of code uses spaces not tabs.

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed.

@tjvantoll
Copy link
Member

I had several comments but they're all rather trivial.

Change status caching, fix existing value related methods, introduce
$.date construction with date object, selected property is null by
default, add selected getter
@fnagel
Copy link
Member Author

fnagel commented Sep 21, 2014

@jzaefferer

Any datepicker demo: Clicking the buttons for next and previous month changes the month, but also closes the calendar popup

Fixed. Chrome fired an additional _calendarEvents focusout event which adds a delayed close. This was related to the regeneration of the buttons in refresh() and flawed logic regarding button() used for prev and next link.

demos/calendar/multiple-months.html: Clicking a date on the second or third month changes the display to show that month as the first month. Only clicking the next/prev buttons should change that.
demos/calendar/other-months.html: Very similar problem as the previous one, clicking lead days changes the month

These issues have been a problem before I took over the development and I would like to fix this after we merged this PR. So for now, this is on my to do list.

@jzaefferer
Copy link
Member

As long as the remaining open issues are tracked in a public place (at least public to our team), I'm fine with merging this and addressing them later.

@fnagel
Copy link
Member Author

fnagel commented Sep 29, 2014

@jzaefferer I've updated the Wiki page with all todo's incl. your hints and bugs.

Now starting to work on Scott's comments

This was referenced Sep 29, 2014
@fnagel fnagel deleted the calendar-value-pr branch August 25, 2015 15:43
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.

6 participants