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/search/form.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/search/form.html.tmpl')
-rw-r--r-- | template/en/default/search/form.html.tmpl | 28 |
1 files changed, 10 insertions, 18 deletions
diff --git a/template/en/default/search/form.html.tmpl b/template/en/default/search/form.html.tmpl index 410bd2d20..30835b1b0 100644 --- a/template/en/default/search/form.html.tmpl +++ b/template/en/default/search/form.html.tmpl @@ -307,26 +307,18 @@ TUI_hide_default('information_query'); <li> <label for="chfieldfrom">between:</label> <input name="chfieldfrom" id="chfieldfrom" size="10" - value="[% default.chfieldfrom.0 FILTER html %]" onchange="updateCalendarFromField(this)"> - <button type="button" class="calendar_button" - id="button_calendar_chfieldfrom" - onclick="showCalendar('chfieldfrom')"><span>Calendar</span></button> - and - <div id="con_calendar_chfieldfrom"></div> - <input name="chfieldto" size="10" id="chfieldto" - value="[% default.chfieldto.0 || "Now" FILTER html %]" - onchange="updateCalendarFromField(this)"> - <button type="button" class="calendar_button" - id="button_calendar_chfieldto" - onclick="showCalendar('chfieldto')"><span>Calendar</span></button> - <div id="con_calendar_chfieldto"></div> + value="[% default.chfieldfrom.0 FILTER html %]"> + and + <input name="chfieldto" size="10" id="chfieldto" + value="[% default.chfieldto.0 || "Now" FILTER html %]"> (YYYY-MM-DD or relative dates) <script type="text/javascript"> - <!-- - [%+ PROCESS "global/calendar.js.tmpl" id = 'chfieldfrom' %] - [% PROCESS "global/calendar.js.tmpl" id = 'chfieldto' %] - //--></script> - </li> + $(function() { + $("#chfieldfrom").datepicker(); + $("#chfieldto").datepicker(); + }); + </script> + </li> </ul> [%############################################################################%] |