summaryrefslogtreecommitdiffstats
path: root/template/en/default/reports/create-chart.html.tmpl
diff options
context:
space:
mode:
authormyk%mozilla.org <>2004-09-15 08:30:20 +0200
committermyk%mozilla.org <>2004-09-15 08:30:20 +0200
commit2ac9cabf38e829f76248b9b3a608a3598c2d4937 (patch)
treee2afb6f11bd260cac6992fc83762e50cb84630ef /template/en/default/reports/create-chart.html.tmpl
parentb087d683501d18daa4433af561be408a88562c88 (diff)
downloadbugzilla-2ac9cabf38e829f76248b9b3a608a3598c2d4937.tar.gz
bugzilla-2ac9cabf38e829f76248b9b3a608a3598c2d4937.tar.xz
Fix for bug 249868: makes series pages validate
Diffstat (limited to 'template/en/default/reports/create-chart.html.tmpl')
-rw-r--r--template/en/default/reports/create-chart.html.tmpl28
1 files changed, 17 insertions, 11 deletions
diff --git a/template/en/default/reports/create-chart.html.tmpl b/template/en/default/reports/create-chart.html.tmpl
index 7b5b4c298..445c7b9cb 100644
--- a/template/en/default/reports/create-chart.html.tmpl
+++ b/template/en/default/reports/create-chart.html.tmpl
@@ -71,9 +71,9 @@ function subcatSelected() {
[% ELSE %]
<tr>
<th>Category:</th>
- <noscript><th></th></noscript>
+ <th></th>
<th>Sub-category:</th>
- <noscript><th></th></noscript>
+ <th></th>
<th>Name:</th>
<th><br>
</th>
@@ -85,30 +85,34 @@ function subcatSelected() {
onchange = "catSelected();
subcatSelected();" } %]
- <noscript>
- <td>
+ <td>
+ <noscript>
<input type="submit" name="action-assemble" value="Update --&gt;">
- </td>
- </noscript>
+ </noscript>
+ </td>
[% PROCESS series_select sel = { name => 'subcategory',
size => 5,
onchange = "subcatSelected()" } %]
- <noscript>
- <td>
- <input type="submit" name="action-assemble" value="Update --%gt;">
- </td>
- </noscript>
+ <td>
+ <noscript>
+ <input type="submit" name="action-assemble" value="Update --&gt;">
+ </noscript>
+ </td>
<td align="left">
<label for="name" accesskey="N">
<select name="name" id="name" style="width: 15em"
size="5" multiple="multiple"
+ [%+ "disabled=\"disabled\"" UNLESS name.keys.size %]>
[% FOREACH x = name.keys.sort %]
<option value="[% name.$x FILTER html %]">
[% x FILTER html %]</option>
[% END %]
+ [% UNLESS name.keys.size %]
+ <option value="" disabled="disabled"></option>
+ [% END %]
</select>
</label>
</td>
@@ -122,6 +126,8 @@ function subcatSelected() {
<script language="JavaScript" type="text/javascript">
document.chartform.category[0].selected = true;
+ document.chartform.subcategory.disabled = '';
+ document.chartform.name.disabled = '';
catSelected();
subcatSelected();
</script>