Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
b92f32dd
Commit
b92f32dd
authored
Sep 25, 2015
by
Frédéric Buclin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 1201266: Migrate YUI calendar to jQuery
r=gerv
parent
b3abb29f
Show whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
53 additions
and
252 deletions
+53
-252
custom-fields.rst
docs/en/rst/administering/custom-fields.rst
+1
-2
field.js
js/field.js
+0
-123
global.css
skins/standard/global.css
+0
-7
create.html.tmpl
template/en/default/bug/create/create.html.tmpl
+1
-1
field.html.tmpl
template/en/default/bug/field.html.tmpl
+6
-15
show-header.html.tmpl
template/en/default/bug/show-header.html.tmpl
+0
-1
summarize-time.html.tmpl
template/en/default/bug/summarize-time.html.tmpl
+11
-23
calendar.js.tmpl
template/en/default/global/calendar.js.tmpl
+0
-33
header.html.tmpl
template/en/default/global/header.html.tmpl
+10
-1
list.html.tmpl
template/en/default/list/list.html.tmpl
+0
-1
create-chart.html.tmpl
template/en/default/reports/create-chart.html.tmpl
+9
-5
field.html.tmpl
template/en/default/search/field.html.tmpl
+8
-21
form.html.tmpl
template/en/default/search/form.html.tmpl
+7
-15
search-advanced.html.tmpl
template/en/default/search/search-advanced.html.tmpl
+0
-1
search-create-series.html.tmpl
template/en/default/search/search-create-series.html.tmpl
+0
-1
search-report-graph.html.tmpl
template/en/default/search/search-report-graph.html.tmpl
+0
-1
search-report-table.html.tmpl
template/en/default/search/search-report-table.html.tmpl
+0
-1
No files found.
docs/en/rst/administering/custom-fields.rst
View file @
b92f32dd
...
@@ -68,8 +68,7 @@ The following attributes must be set for each new custom field:
...
@@ -68,8 +68,7 @@ The following attributes must be set for each new custom field:
:ref:`edit-values-list` for information about
:ref:`edit-values-list` for information about
editing legal values.
editing legal values.
Date/Time:
Date/Time:
A date field. This field appears with a
A date field.
calendar widget for choosing the date.
- *Sortkey:*
- *Sortkey:*
Integer that determines in which order Custom Fields are
Integer that determines in which order Custom Fields are
...
...
js/field.js
View file @
b92f32dd
...
@@ -87,129 +87,6 @@ function _errorFor(field, name) {
...
@@ -87,129 +87,6 @@ function _errorFor(field, name) {
YAHOO
.
util
.
Dom
.
addClass
(
field
,
'validation_error_field'
);
YAHOO
.
util
.
Dom
.
addClass
(
field
,
'validation_error_field'
);
}
}
/* This function is never to be called directly, but only indirectly
* using template/en/default/global/calendar.js.tmpl, so that localization
* works. For the same reason, if you modify this function's parameter list,
* you need to modify the documentation in said template as well. */
function
createCalendar
(
name
,
start_weekday
,
months_long
,
weekdays_short
)
{
var
cal
=
new
YAHOO
.
widget
.
Calendar
(
'calendar_'
+
name
,
'con_calendar_'
+
name
,
{
START_WEEKDAY
:
start_weekday
,
MONTHS_LONG
:
months_long
,
WEEKDAYS_SHORT
:
weekdays_short
});
YAHOO
.
bugzilla
[
'calendar_'
+
name
]
=
cal
;
var
field
=
document
.
getElementById
(
name
);
cal
.
selectEvent
.
subscribe
(
setFieldFromCalendar
,
field
,
false
);
updateCalendarFromField
(
field
);
cal
.
render
();
}
/* The onclick handlers for the button that shows the calendar. */
function
showCalendar
(
field_name
)
{
var
calendar
=
YAHOO
.
bugzilla
[
"calendar_"
+
field_name
];
var
field
=
document
.
getElementById
(
field_name
);
var
button
=
document
.
getElementById
(
'button_calendar_'
+
field_name
);
bz_overlayBelow
(
calendar
.
oDomContainer
,
field
);
calendar
.
show
();
button
.
onclick
=
function
()
{
hideCalendar
(
field_name
);
};
// Because of the way removeListener works, this has to be a function
// attached directly to this calendar.
calendar
.
bz_myBodyCloser
=
function
(
event
)
{
var
container
=
this
.
oDomContainer
;
var
target
=
YAHOO
.
util
.
Event
.
getTarget
(
event
);
if
(
target
!=
container
&&
target
!=
button
&&
!
YAHOO
.
util
.
Dom
.
isAncestor
(
container
,
target
))
{
hideCalendar
(
field_name
);
}
};
// If somebody clicks outside the calendar, hide it.
YAHOO
.
util
.
Event
.
addListener
(
document
.
body
,
'click'
,
calendar
.
bz_myBodyCloser
,
calendar
,
true
);
// Make Esc close the calendar.
calendar
.
bz_escCal
=
function
(
event
)
{
var
key
=
YAHOO
.
util
.
Event
.
getCharCode
(
event
);
if
(
key
==
27
)
{
hideCalendar
(
field_name
);
}
};
YAHOO
.
util
.
Event
.
addListener
(
document
.
body
,
'keydown'
,
calendar
.
bz_escCal
);
}
function
hideCalendar
(
field_name
)
{
var
cal
=
YAHOO
.
bugzilla
[
"calendar_"
+
field_name
];
cal
.
hide
();
var
button
=
document
.
getElementById
(
'button_calendar_'
+
field_name
);
button
.
onclick
=
function
()
{
showCalendar
(
field_name
);
};
YAHOO
.
util
.
Event
.
removeListener
(
document
.
body
,
'click'
,
cal
.
bz_myBodyCloser
);
YAHOO
.
util
.
Event
.
removeListener
(
document
.
body
,
'keydown'
,
cal
.
bz_escCal
);
}
/* This is the selectEvent for our Calendar objects on our custom
* DateTime fields.
*/
function
setFieldFromCalendar
(
type
,
args
,
date_field
)
{
var
dates
=
args
[
0
];
var
setDate
=
dates
[
0
];
// We can't just write the date straight into the field, because there
// might already be a time there.
var
timeRe
=
/
\b(\d{1,2})
:
(\d\d)(?:
:
(\d\d))?
/
;
var
currentTime
=
timeRe
.
exec
(
date_field
.
value
);
var
d
=
new
Date
(
setDate
[
0
],
setDate
[
1
]
-
1
,
setDate
[
2
]);
if
(
currentTime
)
{
d
.
setHours
(
currentTime
[
1
],
currentTime
[
2
]);
if
(
currentTime
[
3
])
{
d
.
setSeconds
(
currentTime
[
3
]);
}
}
var
year
=
d
.
getFullYear
();
// JavaScript's "Date" represents January as 0 and December as 11.
var
month
=
d
.
getMonth
()
+
1
;
if
(
month
<
10
)
month
=
'0'
+
String
(
month
);
var
day
=
d
.
getDate
();
if
(
day
<
10
)
day
=
'0'
+
String
(
day
);
var
dateStr
=
year
+
'-'
+
month
+
'-'
+
day
;
if
(
currentTime
)
{
var
minutes
=
d
.
getMinutes
();
if
(
minutes
<
10
)
minutes
=
'0'
+
String
(
minutes
);
var
seconds
=
d
.
getSeconds
();
if
(
seconds
>
0
&&
seconds
<
10
)
{
seconds
=
'0'
+
String
(
seconds
);
}
dateStr
=
dateStr
+
' '
+
d
.
getHours
()
+
':'
+
minutes
;
if
(
seconds
)
dateStr
=
dateStr
+
':'
+
seconds
;
}
date_field
.
value
=
dateStr
;
hideCalendar
(
date_field
.
id
);
}
/* Sets the calendar based on the current field value.
*/
function
updateCalendarFromField
(
date_field
)
{
var
dateRe
=
/
(\d\d\d\d)
-
(\d\d?)
-
(\d\d?)
/
;
var
pieces
=
dateRe
.
exec
(
date_field
.
value
);
if
(
pieces
)
{
var
cal
=
YAHOO
.
bugzilla
[
"calendar_"
+
date_field
.
id
];
cal
.
select
(
new
Date
(
pieces
[
1
],
pieces
[
2
]
-
1
,
pieces
[
3
]));
var
selectedArray
=
cal
.
getSelectedDates
();
var
selected
=
selectedArray
[
0
];
cal
.
cfg
.
setProperty
(
"pagedate"
,
(
selected
.
getMonth
()
+
1
)
+
'/'
+
selected
.
getFullYear
());
cal
.
render
();
}
}
function
setupEditLink
(
id
)
{
function
setupEditLink
(
id
)
{
var
link_container
=
'container_showhide_'
+
id
;
var
link_container
=
'container_showhide_'
+
id
;
var
input_container
=
'container_'
+
id
;
var
input_container
=
'container_'
+
id
;
...
...
skins/standard/global.css
View file @
b92f32dd
...
@@ -684,13 +684,6 @@ input.required, select.required, span.required_explanation {
...
@@ -684,13 +684,6 @@ input.required, select.required, span.required_explanation {
color
:
#000
;
color
:
#000
;
}
}
.calendar_button
{
background
:
transparent
url("global/calendar.png")
no-repeat
;
width
:
20px
;
height
:
20px
;
vertical-align
:
middle
;
}
.calendar_button
span
{
display
:
none
}
/* These classes are set by YUI. */
/* These classes are set by YUI. */
.yui-calcontainer
{
.yui-calcontainer
{
display
:
none
;
display
:
none
;
...
...
template/en/default/bug/create/create.html.tmpl
View file @
b92f32dd
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
[% PROCESS global/header.html.tmpl
[% PROCESS global/header.html.tmpl
title = title
title = title
generate_api_token = 1
generate_api_token = 1
yui = [
'calendar', 'datatable', 'button'
]
yui = [
'datatable', 'button'
]
style_urls = ['skins/standard/bug.css']
style_urls = ['skins/standard/bug.css']
javascript_urls = [ "js/attachment.js", "js/util.js",
javascript_urls = [ "js/attachment.js", "js/util.js",
"js/field.js", "js/TUI.js", "js/bug.js" ]
"js/field.js", "js/TUI.js", "js/bug.js" ]
...
...
template/en/default/bug/field.html.tmpl
View file @
b92f32dd
...
@@ -52,24 +52,15 @@
...
@@ -52,24 +52,15 @@
[% CASE [constants.FIELD_TYPE_DATETIME, constants.FIELD_TYPE_DATE] %]
[% CASE [constants.FIELD_TYPE_DATETIME, constants.FIELD_TYPE_DATE] %]
[% size = (field.type == constants.FIELD_TYPE_DATE) ? 10 : 20 %]
[% size = (field.type == constants.FIELD_TYPE_DATE) ? 10 : 20 %]
<input name="[% field.name FILTER html %]" size="[% size FILTER none %]"
<input name="[% field.name FILTER html %]" size="[% size FILTER none %]"
id="[% field.name FILTER html %]"
id="[% field.name FILTER html %]" value="[% value FILTER html %]"
value="[% value FILTER html %]"
[% IF field.is_mandatory %]
[% IF field.is_mandatory %]
data-required="true" [% 'aria-required="true" required' UNLESS field_hidden %]
data-required="true" [% 'aria-required="true" required' UNLESS field_hidden %]
[% END %]
[% END %]>
onchange="updateCalendarFromField(this)">
<button type="button" class="calendar_button"
id="button_calendar_[% field.name FILTER html %]"
onclick="showCalendar('[% field.name FILTER js %]')">
<span>Calendar</span>
</button>
<div id="con_calendar_[% field.name FILTER html %]"></div>
<script type="text/javascript">
<script type="text/javascript">
<!--
$(function() {
[%+ PROCESS "global/calendar.js.tmpl" id = field.name %]
$("#[% field.name FILTER html FILTER js %]").datepicker([% "{constrainInput: false}" IF field.type == constants.FIELD_TYPE_DATETIME %]);
//--></script>
});
</script>
[% CASE constants.FIELD_TYPE_BUG_ID %]
[% CASE constants.FIELD_TYPE_BUG_ID %]
<span id="[% field.name FILTER html %]_input_area">
<span id="[% field.name FILTER html %]_input_area">
<input name="[% field.name FILTER html %]" id="[% field.name FILTER html %]"
<input name="[% field.name FILTER html %]" id="[% field.name FILTER html %]"
...
...
template/en/default/bug/show-header.html.tmpl
View file @
b92f32dd
...
@@ -24,7 +24,6 @@
...
@@ -24,7 +24,6 @@
[% END %]
[% END %]
[% title = title _ filtered_desc %]
[% title = title _ filtered_desc %]
[% generate_api_token = 1 %]
[% generate_api_token = 1 %]
[% yui = [ 'calendar' ] %]
[% yui.push('json', 'connection', 'container') IF user.can_tag_comments %]
[% yui.push('json', 'connection', 'container') IF user.can_tag_comments %]
[% javascript_urls = [ "js/util.js", "js/field.js", "js/comments.js" ] %]
[% javascript_urls = [ "js/util.js", "js/field.js", "js/comments.js" ] %]
[% javascript_urls.push("js/bug.js") IF user.id %]
[% javascript_urls.push("js/bug.js") IF user.id %]
...
...
template/en/default/bug/summarize-time.html.tmpl
View file @
b92f32dd
...
@@ -22,9 +22,7 @@
...
@@ -22,9 +22,7 @@
header = header
header = header
style_urls = ['skins/standard/buglist.css']
style_urls = ['skins/standard/buglist.css']
doc_section = "using/editing.html#time-tracking"
doc_section = "using/editing.html#time-tracking"
yui = ['calendar']
%]
javascript_urls = [ "js/util.js", "js/field.js" ]
%]
[% INCLUDE query_form %]
[% INCLUDE query_form %]
...
@@ -261,23 +259,19 @@
...
@@ -261,23 +259,19 @@
<label accesskey="s" for="start_date">Period <u>s</u>tarting</label>:
<label accesskey="s" for="start_date">Period <u>s</u>tarting</label>:
</th>
</th>
<td>
<td>
<input id="start_date" name="start_date" size="10" autofocus
<input id="start_date" name="start_date" size="10"
value="[% start_date FILTER html %]" maxlength="10"
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>
<span class="label">
<span class="label">
and <label accesskey="e" for="end_date"><u>e</u>nding</label>:
and <label accesskey="e" for="end_date"><u>e</u>nding</label>:
</span>
</span>
<input type="text" name="end_date" size="10" id="end_date"
<input id="end_date" name="end_date" size="10"
value ="[% end_date FILTER html %]" maxlength="10"
value ="[% end_date FILTER html %]" maxlength="10">
onchange="updateCalendarFromField(this)">
<script type="text/javascript">
<button type="button" class="calendar_button" id="button_calendar_end_date"
$(function() {
onclick="showCalendar('end_date')"><span>Calendar</span>
$("#start_date").datepicker();
</button>
$("#end_date").datepicker();
<div id="con_calendar_end_date"></div>
});
</script>
<br>
<br>
<span class="bz_info">(Dates are optional, and in YYYY-MM-DD format)</span>
<span class="bz_info">(Dates are optional, and in YYYY-MM-DD format)</span>
</td>
</td>
...
@@ -321,11 +315,5 @@
...
@@ -321,11 +315,5 @@
</table>
</table>
</form>
</form>
<script type="text/javascript">
<!--
[%+ PROCESS "global/calendar.js.tmpl" id = 'start_date' %]
[% PROCESS "global/calendar.js.tmpl" id = 'end_date' %]
//-->
</script>
<hr>
<hr>
[% END %]
[% END %]
template/en/default/global/calendar.js.tmpl
deleted
100644 → 0
View file @
b3abb29f
[%# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
# This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0.
#%]
[%# INTERFACE:
# id: The id of the input field the calendar widget is to be assigned to.
#%]
[%# This template exists because createCalendar accepts additional parameters
# which allow for localization. Please see the YUI documentation at
# http://developer.yahoo.com/yui/calendar/#internationalization for details.
# As an example, here's what you'd specify as additional parameters to
# localize for German calendars; replace the ellipsis ("...") by the original
# parameter (we cannot put it into the example because it'd break this
# template comment):
#
# createCalendar(...
# /* The weekday the week begins on; 0 is Sunday,
# * 1 is Monday and so on: */
# 1,
# /* Months, full names; first must be January: */
# ['Januar', 'Februar', 'März', 'April',
# 'Mai', 'Juni', 'Juli', 'August',
# 'September', 'Oktober', 'November', 'Dezember'],
# /* Weekdays, two-letter abbreviations; first must be
# * Sunday: */
# ['So', 'Mo', 'Di', 'Mi', 'Do', 'Fr', 'Sa']);
#%]
createCalendar('[% id FILTER js %]');
template/en/default/global/header.html.tmpl
View file @
b92f32dd
...
@@ -44,7 +44,6 @@
...
@@ -44,7 +44,6 @@
[% IF NOT no_yui %]
[% IF NOT no_yui %]
[% SET yui_css = {
[% SET yui_css = {
calendar => 1,
datatable => 1,
datatable => 1,
button => 1,
button => 1,
} %]
} %]
...
@@ -182,6 +181,16 @@
...
@@ -182,6 +181,16 @@
}
}
$
(
document
).
ready
(
unhide_language_selector
);
$
(
document
).
ready
(
unhide_language_selector
);
// This sets the default parameters for all calendar fields.
$
.
datepicker
.
setDefaults
({
dateFormat
:
"yy-mm-dd"
,
// this is the YYYY-MM-DD format
showButtonPanel
:
true
,
// permits to easily select "Today"
// These 3 parameters are useful for localization.
firstDay
:
0
,
// 0 = Sunday, 1 = Monday, etc...
dayNamesMin
:
[
"Su"
,
"Mo"
,
"Tu"
,
"We"
,
"Th"
,
"Fr"
,
"Sa"
],
monthNames
:
[
"January"
,
"February"
,
"March"
,
"April"
,
"May"
,
"June"
,
"July"
,
"August"
,
"September"
,
"October"
,
"November"
,
"December"
]
});
[
%
#
Make
some
Bugzilla
information
available
to
all
scripts
.
[
%
#
Make
some
Bugzilla
information
available
to
all
scripts
.
#
We
don
't import every parameter and constant because we
#
We
don
't import every parameter and constant because we
# don'
t
want
to
add
a
lot
of
uncached
JS
to
every
page
.
# don'
t
want
to
add
a
lot
of
uncached
JS
to
every
page
.
...
...
template/en/default/list/list.html.tmpl
View file @
b92f32dd
...
@@ -61,7 +61,6 @@
...
@@ -61,7 +61,6 @@
title = title
title = title
generate_api_token = dotweak
generate_api_token = dotweak
atomlink = "buglist.cgi?$urlquerypart&title=$title&ctype=atom"
atomlink = "buglist.cgi?$urlquerypart&title=$title&ctype=atom"
yui = [ 'calendar' ]
javascript_urls = [ "js/util.js", "js/field.js", "js/TUI.js" ]
javascript_urls = [ "js/util.js", "js/field.js", "js/TUI.js" ]
style_urls = [ "skins/standard/buglist.css" ]
style_urls = [ "skins/standard/buglist.css" ]
doc_section = "using/finding.html"
doc_section = "using/finding.html"
...
...
template/en/default/reports/create-chart.html.tmpl
View file @
b92f32dd
...
@@ -215,12 +215,10 @@ function subcatSelected() {
...
@@ -215,12 +215,10 @@ function subcatSelected() {
<td></td>
<td></td>
<td>
<td>
<label for="datefrom"><b>Date Range</b></label>:
<label for="datefrom"><b>Date Range</b></label>:
<input type="text" size="12" name="datefrom" id="datefrom"
<input size="12" name="datefrom" id="datefrom" placeholder="YYYY-MM-DD"
placeholder="YYYY-MM-DD"
value="[% time2str("%Y-%m-%d", chart.datefrom) IF chart.datefrom %]">
value="[% time2str("%Y-%m-%d", chart.datefrom) IF chart.datefrom%]">
<label for="dateto"><b>to</b></label>
<label for="dateto"><b>to</b></label>
<input type="text" size="12" name="dateto" id="dateto"
<input size="12" name="dateto" id="dateto" placeholder="YYYY-MM-DD"
placeholder="YYYY-MM-DD"
value="[% time2str("%Y-%m-%d", chart.dateto) IF chart.dateto %]">
value="[% time2str("%Y-%m-%d", chart.dateto) IF chart.dateto %]">
</td>
</td>
...
@@ -230,6 +228,12 @@ function subcatSelected() {
...
@@ -230,6 +228,12 @@ function subcatSelected() {
</td>
</td>
</tr>
</tr>
</table>
</table>
<script type="text/javascript">
$(function() {
$("#datefrom").datepicker();
$("#dateto").datepicker();
});
</script>
[% ELSE %]
[% ELSE %]
<p><i>None</i></p>
<p><i>None</i></p>
[% END %]
[% END %]
...
...
template/en/default/search/field.html.tmpl
View file @
b92f32dd
...
@@ -57,32 +57,19 @@
...
@@ -57,32 +57,19 @@
%]
%]
from <input name="[% field.name FILTER html %]from"
from <input name="[% field.name FILTER html %]from"
id="[% field.name FILTER html %]"
id="[% field.name FILTER html %]"
size="10" maxlength="10"
size="10" maxlength="10" value="[% value.0 FILTER html %]">
value="[% value.0 FILTER html %]"
onchange="updateCalendarFromField(this);[% onchange FILTER html %]">
<button type="button" class="calendar_button"
id="button_calendar_[% field.name FILTER html %]"
onclick="showCalendar('[% field.name FILTER js %]')">
<span>Calendar</span>
</button>
<span id="con_calendar_[% field.name FILTER html %]"></span>
to <input name="[% field.name FILTER html %]to"
to <input name="[% field.name FILTER html %]to"
id="[% field.name FILTER html %]to" size="10" maxlength="10"
id="[% field.name FILTER html %]to" size="10" maxlength="10"
value="[% value.1 FILTER html %]"
value="[% value.1 FILTER html %]">
onchange="updateCalendarFromField(this);[% onchange FILTER html %]">
<button type="button" class="calendar_button"
id="button_calendar_[% field.name FILTER html %]to"
onclick="showCalendar('[% field.name FILTER js %]to')">
<span>Calendar</span>
</button>
<small>(YYYY-MM-DD or relative dates)</small>
<small>(YYYY-MM-DD or relative dates)</small>
<span id="con_calendar_[% field.name FILTER html %]to"></span>
<script type="text/javascript">
<script type="text/javascript">
<!--
$(function() {
[%+ PROCESS "global/calendar.js.tmpl" id = field.name %]
// do not check user input as relative dates are allowed
[% PROCESS "global/calendar.js.tmpl" id = field.name _ 'to' %]
$("#[% field.name FILTER html FILTER js %]").datepicker({constrainInput: false});
//--></script>
$("#[% field.name FILTER html FILTER js %]to").datepicker({constrainInput: false});
});
</script>
[% CASE [ constants.FIELD_TYPE_SINGLE_SELECT,
[% CASE [ constants.FIELD_TYPE_SINGLE_SELECT,
constants.FIELD_TYPE_MULTI_SELECT ] %]
constants.FIELD_TYPE_MULTI_SELECT ] %]
<div id="container_[% field.name FILTER html %]" class="search_field_grid">
<div id="container_[% field.name FILTER html %]" class="search_field_grid">
...
...
template/en/default/search/form.html.tmpl
View file @
b92f32dd
...
@@ -307,25 +307,17 @@ TUI_hide_default('information_query');
...
@@ -307,25 +307,17 @@ TUI_hide_default('information_query');
<li>
<li>
<label for="chfieldfrom">between:</label>
<label for="chfieldfrom">between:</label>
<input name="chfieldfrom" id="chfieldfrom" size="10"
<input name="chfieldfrom" id="chfieldfrom" size="10"
value="[% default.chfieldfrom.0 FILTER html %]" onchange="updateCalendarFromField(this)">
value="[% default.chfieldfrom.0 FILTER html %]">
<button type="button" class="calendar_button"
id="button_calendar_chfieldfrom"
onclick="showCalendar('chfieldfrom')"><span>Calendar</span></button>
and
and
<div id="con_calendar_chfieldfrom"></div>
<input name="chfieldto" size="10" id="chfieldto"
<input name="chfieldto" size="10" id="chfieldto"
value="[% default.chfieldto.0 || "Now" FILTER html %]"
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>
(YYYY-MM-DD or relative dates)
(YYYY-MM-DD or relative dates)
<script type="text/javascript">
<script type="text/javascript">
<!--
$(function() {
[%+ PROCESS "global/calendar.js.tmpl" id = 'chfieldfrom' %]
$("#chfieldfrom").datepicker();
[% PROCESS "global/calendar.js.tmpl" id = 'chfieldto' %]
$("#chfieldto").datepicker();
//--></script>
});
</script>
</li>
</li>
</ul>
</ul>
...
...
template/en/default/search/search-advanced.html.tmpl
View file @
b92f32dd
...
@@ -27,7 +27,6 @@ function remove_token() {
...
@@ -27,7 +27,6 @@ function remove_token() {
[% PROCESS global/header.html.tmpl
[% PROCESS global/header.html.tmpl
title = "Search for $terms.bugs"
title = "Search for $terms.bugs"
generate_api_token = 1
generate_api_token = 1
yui = [ 'calendar' ]
javascript = javascript
javascript = javascript
javascript_urls = [ "js/util.js", "js/TUI.js", "js/field.js"]
javascript_urls = [ "js/util.js", "js/TUI.js", "js/field.js"]
style_urls = ['skins/standard/buglist.css']
style_urls = ['skins/standard/buglist.css']
...
...
template/en/default/search/search-create-series.html.tmpl
View file @
b92f32dd
...
@@ -19,7 +19,6 @@
...
@@ -19,7 +19,6 @@
[% PROCESS global/header.html.tmpl
[% PROCESS global/header.html.tmpl
title = "Create New Data Set"
title = "Create New Data Set"
onload = "doOnSelectProduct(0);"
onload = "doOnSelectProduct(0);"
yui = [ 'calendar' ]
javascript = js_data
javascript = js_data
javascript_urls = [ "js/util.js", "js/TUI.js", "js/field.js" ]
javascript_urls = [ "js/util.js", "js/TUI.js", "js/field.js" ]
style_urls = ['skins/standard/buglist.css']
style_urls = ['skins/standard/buglist.css']
...
...
template/en/default/search/search-report-graph.html.tmpl
View file @
b92f32dd
...
@@ -18,7 +18,6 @@ var queryform = "reportform"
...
@@ -18,7 +18,6 @@ var queryform = "reportform"
[% PROCESS global/header.html.tmpl
[% PROCESS global/header.html.tmpl
title = "Generate Graphical Report"
title = "Generate Graphical Report"
onload = "doOnSelectProduct(0); chartTypeChanged()"
onload = "doOnSelectProduct(0); chartTypeChanged()"
yui = [ 'calendar' ]
javascript = js_data
javascript = js_data
javascript_urls = [ "js/util.js", "js/TUI.js", "js/field.js" ]
javascript_urls = [ "js/util.js", "js/TUI.js", "js/field.js" ]
style_urls = ['skins/standard/buglist.css']
style_urls = ['skins/standard/buglist.css']
...
...
template/en/default/search/search-report-table.html.tmpl
View file @
b92f32dd
...
@@ -18,7 +18,6 @@ var queryform = "reportform"
...
@@ -18,7 +18,6 @@ var queryform = "reportform"
[% PROCESS global/header.html.tmpl
[% PROCESS global/header.html.tmpl
title = "Generate Tabular Report"
title = "Generate Tabular Report"
onload = "doOnSelectProduct(0)"
onload = "doOnSelectProduct(0)"
yui = [ 'calendar' ]
javascript = js_data
javascript = js_data
javascript_urls = [ "js/util.js", "js/TUI.js", "js/field.js" ]
javascript_urls = [ "js/util.js", "js/TUI.js", "js/field.js" ]
style_urls = ['skins/standard/buglist.css']
style_urls = ['skins/standard/buglist.css']
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment