Feature Proposal: Replace JSCalendarContrib With DatePickerPlugin
Motivation
The
JSCalendarContrib does not play nicely with multiple date pickers on a page when hand-crafting
HTML form fields with date pickers. The INCLUDE is also somewhat convoluted and user unfriendly.
Description and Documentation
Create a new
DatePickerPlugin that replaces the JSCalendarContrib
Examples
Impact
Implementation
- DatePickerPlugin:
-
Handles the DATEPICKER variable to show a date picker input field for use in HTML forms
-
Implements the 'date' type in TWikiForms, module TWiki::Form::Date
- Modify JSCalendarContrib to play nicely with DatePickerPlugin:
-
Modify implementation to reference code of DatePickerPlugin
-
Remove TWiki::Form::Date
-
Mark contrib as deprecated, but ship with next TWiki release so that existing TWiki apps work.
- Modify extensions to use DatePickerPlugin instead of JSCalendarContrib:
- Modify docs to reference DatePickerPlugin instead of JSCalendarContrib
--
Contributors:
Peter Thoeny - 2012-12-08
Discussion
First version of
DatePickerPlugin is released, enjoy.
--
Peter Thoeny - 2012-12-10
On my dev server, DatePickerContrib looks the same as JSCalendarContrib. What's the secret sauce to make it look nice as shown above?
--
Hideyo Imazu - 2012-12-14
Update the
JSCalendarContrib to the latest version (or uninstall after you fix all content). If you update JSCalendarContrib you need to update
EditTablePlugin and other plugins that have dependency on JSCalendarContrib as well.
--
Peter Thoeny - 2012-12-14
Replacing the JSCalendarContrib with the DatePickerPlugin is now accepted based on the 7 day feedback rule.
--
Peter Thoeny - 2012-12-17
And this is now checked in using
TWikibug:Item7078
(replace contrib with plugin in TWiki core).
--
Peter Thoeny - 2012-12-17
I don't get it. Why does
JSCalendarContrib need to be updated to make
DatePickerPlugin look nicer? Doesn't
DatePickerPlugin contain everything it needs to perform like that?
--
Hideyo Imazu - 2012-12-17
The DatePickerPlugin has everything. The JSCalendarContrib needs to be either deleted or updated because the Javascript and
TWiki::Form::Date conflict with each other.
--
Peter Thoeny - 2012-12-17
Found the issue: The default style if
{Plugins}{DatePickerPlugin}{Style} was missing in configure was
"blue". I changed the default to
"twiki". The example at
http://develop.twiki.org/~twiki4/cgi-bin/view/TWiki/DatePickerPlugin
works now as expected.
--
Peter Thoeny - 2012-12-21