diff options
author | Frédéric Buclin <LpSolit@gmail.com> | 2015-09-25 18:34:42 +0200 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2015-09-25 18:34:42 +0200 |
commit | b92f32dd334617e74ab931c1db1801cf1c2897ba (patch) | |
tree | 47d93475fb94fab18432cf9a5b2b6b6efc9add0a /template/en/default/bug/summarize-time.html.tmpl | |
parent | b3abb29f2814bafd69095f3ef91bc40cbe5f866c (diff) | |
download | bugzilla-b92f32dd334617e74ab931c1db1801cf1c2897ba.tar.gz bugzilla-b92f32dd334617e74ab931c1db1801cf1c2897ba.tar.xz |
Bug 1201266: Migrate YUI calendar to jQuery
r=gerv
Diffstat (limited to 'template/en/default/bug/summarize-time.html.tmpl')
-rw-r--r-- | template/en/default/bug/summarize-time.html.tmpl | 34 |
1 files changed, 11 insertions, 23 deletions
diff --git a/template/en/default/bug/summarize-time.html.tmpl b/template/en/default/bug/summarize-time.html.tmpl index 9613eebf1..84eb75615 100644 --- a/template/en/default/bug/summarize-time.html.tmpl +++ b/template/en/default/bug/summarize-time.html.tmpl @@ -22,9 +22,7 @@ header = header style_urls = ['skins/standard/buglist.css'] doc_section = "using/editing.html#time-tracking" - yui = ['calendar'] - javascript_urls = [ "js/util.js", "js/field.js" ] - %] +%] [% INCLUDE query_form %] @@ -261,23 +259,19 @@ <label accesskey="s" for="start_date">Period <u>s</u>tarting</label>: </th> <td> - <input id="start_date" name="start_date" size="10" autofocus - value="[% start_date FILTER html %]" maxlength="10" - onchange="updateCalendarFromField(this)"> - <button type="button" class="calendar_button" id="button_calendar_start_date" - onclick="showCalendar('start_date')"><span>Calendar</span> - </button> - <div id="con_calendar_start_date"></div> + <input id="start_date" name="start_date" size="10" + value="[% start_date FILTER html %]" maxlength="10"> <span class="label"> and <label accesskey="e" for="end_date"><u>e</u>nding</label>: </span> - <input type="text" name="end_date" size="10" id="end_date" - value ="[% end_date FILTER html %]" maxlength="10" - onchange="updateCalendarFromField(this)"> - <button type="button" class="calendar_button" id="button_calendar_end_date" - onclick="showCalendar('end_date')"><span>Calendar</span> - </button> - <div id="con_calendar_end_date"></div> + <input id="end_date" name="end_date" size="10" + value ="[% end_date FILTER html %]" maxlength="10"> + <script type="text/javascript"> + $(function() { + $("#start_date").datepicker(); + $("#end_date").datepicker(); + }); + </script> <br> <span class="bz_info">(Dates are optional, and in YYYY-MM-DD format)</span> </td> @@ -321,11 +315,5 @@ </table> </form> -<script type="text/javascript"> - <!-- - [%+ PROCESS "global/calendar.js.tmpl" id = 'start_date' %] - [% PROCESS "global/calendar.js.tmpl" id = 'end_date' %] - //--> -</script> <hr> [% END %] |