On Tue, Dec 10, 2013 at 3:11 AM, Emmanuel Blot <[email protected]> wrote:
> 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.

I tried to keep the cursor position.

https://github.com/jun66j5/jQuery-Timepicker-Addon/commit/3fc9b003e72f7c35ab3c36e059d071317bc453ac

Replace trac/htdocs/js/jquery-ui-addons.js with the following.

   
https://github.com/jun66j5/jQuery-Timepicker-Addon/raw/v1.0.1_keep_cursor/jquery-ui-timepicker-addon.js

And, apply the following patch.

diff --git a/trac/web/chrome.py b/trac/web/chrome.py
index 6e82b5d..a47d24e 100644
--- a/trac/web/chrome.py
+++ b/trac/web/chrome.py
@@ -1141,8 +1141,9 @@ class Chrome(Component):
             'first_week_day': get_first_week_day_jquery_ui(req),
             'timepicker_separator': 'T' if is_iso8601 else ' ',
             'show_timezone': is_iso8601,
+            # default timezone must be included
             'timezone_list': get_timezone_list_jquery_ui() \
-                             if is_iso8601 else [],
+                             if is_iso8601 else ['Z'],
             'timezone_iso8601': is_iso8601,
         })
         add_script(req, 'common/js/jquery-ui-i18n.js')


> 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"

That's so bad. However I cannot reproduce it and I don't know how to
configure to use the 24 hours scheme. Could you please provide the
configurations?


> 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

I think it is caused by issue #2.

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to