summaryrefslogtreecommitdiffstats
path: root/template/en/default/reports
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2015-09-25 18:34:42 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2015-09-25 18:34:42 +0200
commitb92f32dd334617e74ab931c1db1801cf1c2897ba (patch)
tree47d93475fb94fab18432cf9a5b2b6b6efc9add0a /template/en/default/reports
parentb3abb29f2814bafd69095f3ef91bc40cbe5f866c (diff)
downloadbugzilla-b92f32dd334617e74ab931c1db1801cf1c2897ba.tar.gz
bugzilla-b92f32dd334617e74ab931c1db1801cf1c2897ba.tar.xz
Bug 1201266: Migrate YUI calendar to jQuery
r=gerv
Diffstat (limited to 'template/en/default/reports')
-rw-r--r--template/en/default/reports/create-chart.html.tmpl14
1 files changed, 9 insertions, 5 deletions
diff --git a/template/en/default/reports/create-chart.html.tmpl b/template/en/default/reports/create-chart.html.tmpl
index 6b5fa5fe3..533c631ed 100644
--- a/template/en/default/reports/create-chart.html.tmpl
+++ b/template/en/default/reports/create-chart.html.tmpl
@@ -215,12 +215,10 @@ function subcatSelected() {
<td></td>
<td>
<label for="datefrom"><b>Date Range</b></label>:
- <input type="text" size="12" name="datefrom" id="datefrom"
- placeholder="YYYY-MM-DD"
- value="[% time2str("%Y-%m-%d", chart.datefrom) IF chart.datefrom%]">
+ <input size="12" name="datefrom" id="datefrom" placeholder="YYYY-MM-DD"
+ value="[% time2str("%Y-%m-%d", chart.datefrom) IF chart.datefrom %]">
<label for="dateto"><b>to</b></label>
- <input type="text" size="12" name="dateto" id="dateto"
- placeholder="YYYY-MM-DD"
+ <input size="12" name="dateto" id="dateto" placeholder="YYYY-MM-DD"
value="[% time2str("%Y-%m-%d", chart.dateto) IF chart.dateto %]">
</td>
@@ -230,6 +228,12 @@ function subcatSelected() {
</td>
</tr>
</table>
+ <script type="text/javascript">
+ $(function() {
+ $("#datefrom").datepicker();
+ $("#dateto").datepicker();
+ });
+ </script>
[% ELSE %]
<p><i>None</i></p>
[% END %]