> Putting a snippet in site.js seems to work:
>
> jQuery(document).ready(function($) {
> $(".hasDatepicker").datetimepicker("destroy");
> });
Ok, thanks, I'll give it a try.
> What issues are you having with the datepicker?
Settings the time with the slider takes much more time than entering
the time in the text field, and whenever the text field is edited, the
datapicker can't help "fixing" the digits. The end result is that
using this widget is less effective that submitting the date/time with
a simple text field.
Having a datepicker that help entering a date/time would be nice.
However this auto-fixing, always-on feature that cannot be disabled
and understand most of the submitted values wrong is really getting on
the nerves :-) Automagic stuff always gets stupid at some point.
Helping is nice, forcing is -really- bad.
Issue #1
* Select a date field with an existing value, select the month, type
a new month value. As soon as the second digit of the month is
entered, the cursor is moved to the end of field, which is not natural
and requires more edition hits from the user to change the time.
Issue #2
* The time format on our server is configured to use the 24 hours
scheme (vs. 12 hours), but the datepicker sticks with 12 hours - I did
not get a chance to have a look and understand why. Whenever the
edited hour is >= 12, the time is automagically reverted to the 12
hour scheme - and there is not even a "pm" marker, e.g. "17" simply
becomes "05"
Issue #3
* Current time is "05:00:00". Move the cursor after "5" and hit
"backspace" to edit the hour. Datepicker wants to be smarter, replaces
the time with "12" (WTF?) and moves the cursor to the end of the text
field
* Similar issue if the day digits are selected and the user starts
typing a new day: datepicker changes the hour to something unrelated,
and moves the cursor at the end of the field... (except if the day is
invalid, in this case datapicker remains inactive and silent)
* It seems that as soon as datepicker is able to compute a valid
date, it steals the focus and starts playing on its own: type "01/01/"
-> boom, autocompletion is triggered with some default date.
I'm pretty sure I bumped into other issues, but each issue described
here is a PITA and justify, from my perspective, to get rid of this
"helper".
Moreover, whereas the following point are not issues, the make the
datepicker far less usable than most data picker available on other
websites:
* There is no way to jump to an arbitrary month or year.
* The hour/minute/second sliders are really not easy to use (my
personal feeling is that a slider is a bad idea to select a time)
Maybe it is just about a configuration issue.
The default JQuery UI with date-only selection does not trigger any of
these issues. It seems that these issues come from the addition of
time support.
Cheers,
Manu