-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Calendar rebase (3) #1352
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
Calendar rebase (3) #1352
Conversation
Change status caching, fix existing value related methods, introduce $.date construction with date object, selected property is null by default, add selected getter
bb556be
to
c6f205f
Compare
Add calendar widget by copying and renaming datepicker widget files. Remove datepicker functionality, options and methods from Calendar. Remove calendar functionality, options and methods from Datepicker. Adjust tests due to split and changed specification. Remove duplicated demo files and fix some demos. Simplify calendar generation, use CSS instead of inline styles. Fix destroy method. Make use of uniqueId method. Fix focus highlighting when month is changed. Add version property. Add common unit tests. Fix input keyboard handling.
Improve render day cell mechanism.
Remove shortcut for closing the calendar and erasing the date (CTRL+END)
Several minor code improvements and make suppressExpandOnFocus an internal variable
Add Test if these options are set on the underlying calendar instance
c6f205f
to
f2a51be
Compare
} | ||
if ( months[ i ].last ) { | ||
headerClass = "ui-corner-right"; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If months[ i ].first
and months[ i ].last
are mutually exclusive, I suggest using else if
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed. This should be the case as long as we have two different methods for creating single and multiple datepickers.
Opening the default datepicker demo results in "Uncaught Error: invalid value (undefined), string expected " |
@scottgonzalez That Uncaught Error: invalid value (undefined), string expected " is fixed. It's needed to catch undefined values in _getCreateOptions. |
@scottgonzalez Do you want me to open a new PR or should I force push my changes here? |
New PR every time, otherwise the discussion history is nearly impossible to follow. |
New PR: #1371 |
This replaces #1316, but was itself replaced by #1371.