-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Datepicker and Calendar: WIP #1260
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
Conversation
…story is on the datepicker-dead branch.
…ribly, but at least it loads with its dependencies.
…ng with phantomjs. Fix various jshint warnings in date_core tests and datepicker src
…sing that through to $.date
…'t mean that they actually work for the most part
…ize to parse and format instead
…se that in other-months demo. Fix handling of extraClasses property, split on space.
… the datepicker from opening with a new cancellable beforeOpen event. Cancel = don't open
This is specifically for multi month pickers. This makes the assumption that the keyboard is always interacting with the first month in a multi month calendar. The next step is to store which grid currently has focus and to base these focus logic off of that.
…ker structure tests.
…none of these options are implemented yet.
These tests are commented out for now as they need a means of getting a Date object from the widget and currently there isn't one.
Disabling these tests as well as they utilize the old getDate() and setDate() methods and there is no replacement for these yet.
Moving widget() method test from core.js as it makes more sense in methods.js.
…st all irrelevant now.
Conflicts: Gruntfile.js ui/jquery.ui.datepicker.js
Adding tests for the appendTo option.
@tjvantoll I agree - we should merge this soon to keep the PR usable. I already finished removing duplicated demos and started with the unit tests. This will take some more time as it's an non trivial task and I'm starting a new job next week. |
Remove duplicated core unit tests from datepicker tests.
@rxaviers Thanks for your comments. Which seems to be no more available, even when using the anchor links within the GitHub notification emails. We already talked about updating Globalize and I will make sure to add proper dependencies to calendar / datepicker. rxaviers wrote:
@jzaefferer @scottgonzalez @tjvantoll Any thoughts on this? |
As I wrote in a wiki comment: Regarding the pseudo-external date.js: I suggest handling it as another source file for now, putting it in the "ui" folder. The unit tests already match that. That would be less misleading then what we have now. And we can still extract it later, if we want to. |
@fnagel, thanks for bringing it back. After I added a couple of comments in here and talked with Scott about it, I realized my comments made more sense to be added into the wiki instead. So, I've deleted them and edited the wiki accordingly. @jzaefferer, I think your approach is better than the current scenario. So, 👍 |
+1 to putting date.js in the "ui" folder for now. |
PR updated: work on unit tests (fix calendar tests and remove duplicates), fix calendar demos, removed duplicated demos, fix some minor issues. |
Can you rebase this? It's really hard to see what's actually happening with all the old commits. |
We already talked about rebase vs. merge and agreed to merge datepicker branch as a rebase is to much trouble. The latest commits start at TJs comment from June 19. We talked about closing this PR as soon as I finish the unit tests split (which should be very soon as all test except the options tests are ready). |
How about merging master into the datepicker branch, the rebasing this PR on top of it? That should get the non-datepicker commits out of this PR. |
Conflicts: demos/calendar/buttonbar.html demos/calendar/dropdown-month-year.html demos/calendar/multiple-months.html demos/datepicker/alt-field.html demos/datepicker/animation.html demos/datepicker/date-formats.html demos/datepicker/date-range.html demos/datepicker/default.html demos/datepicker/icon-trigger.html demos/datepicker/inline.html demos/datepicker/localization.html demos/datepicker/min-max.html demos/datepicker/other-months.html demos/datepicker/show-week.html external/globalize/globalize.culture.de-DE.js external/globalize/globalize.culture.ja-JP.js tests/unit/datepicker/datepicker.html
@scottgonzalez Did you manage to find some time to look at this PR? |
I've gotten through all the commits in the original datepicker branch (see https://github.com/scottgonzalez/jquery-ui/tree/datepicker-rebase-cleanup) and I'll likely be able to start on the rebase of this tomorrow morning. I expect to have the rebase done before this week's meeting. |
Nice, thanks for the info. I'm not sure if I will be able to attend the meeting this week as I'll be at a customer site. |
Moved to #1281. |
This was replaced by #1281.
This PR introduces the Calendar widget which is utilized in Datepicker widget. It also includes several improvements and changes as outlined in the wiki: http://wiki.jqueryui.com/w/page/12137778/Datepicker
Included changes and bugfixes: