aboutsummaryrefslogtreecommitdiffstats
path: root/template
diff options
context:
space:
mode:
Diffstat (limited to 'template')
-rw-r--r--template/en/default/admin/flag-type/edit.html.tmpl9
-rw-r--r--template/en/default/request/queue.html.tmpl8
2 files changed, 6 insertions, 11 deletions
diff --git a/template/en/default/admin/flag-type/edit.html.tmpl b/template/en/default/admin/flag-type/edit.html.tmpl
index 253a310ac..c735ac33d 100644
--- a/template/en/default/admin/flag-type/edit.html.tmpl
+++ b/template/en/default/admin/flag-type/edit.html.tmpl
@@ -21,7 +21,7 @@
[% PROCESS global/variables.none.tmpl %]
-[%# The javascript and header_html blocks get used in header.html.tmpl. %]
+[%# The javascript block gets used in header.html.tmpl. %]
[% javascript = BLOCK %]
var usetms = 0; // do we have target milestone?
var first_load = 1; // is this the first time we load the page?
@@ -33,10 +33,6 @@
[% END %]
[% END %]
-[% header_html = BLOCK %]
- <script language="JavaScript" type="text/javascript" src="productmenu.js"></script>
-[% END %]
-
[% IF type.target_type == "bug" %]
[% title = BLOCK %]Create Flag Type for [% terms.Bugs %][% END %]
[% typeLabelLowerPlural = BLOCK %][% terms.bugs %][% END %]
@@ -59,7 +55,8 @@
table#form th { text-align: right; vertical-align: baseline; white-space: nowrap; }
table#form td { text-align: left; vertical-align: baseline; }
"
- onload="selectProduct(forms[0], 'product', 'component', '__Any__');"
+ onload="selectProduct(document.forms[0], 'product', 'component', '__Any__');"
+ javascript_urls=["productmenu.js"]
%]
<form method="post" action="editflagtypes.cgi">
diff --git a/template/en/default/request/queue.html.tmpl b/template/en/default/request/queue.html.tmpl
index 5a626b183..fbfa94d25 100644
--- a/template/en/default/request/queue.html.tmpl
+++ b/template/en/default/request/queue.html.tmpl
@@ -24,7 +24,7 @@
[% USE Bugzilla %]
[% cgi = Bugzilla.cgi %]
-[%# The javascript and header_html blocks get used in header.html.tmpl. %]
+[%# The javascript block gets used in header.html.tmpl. %]
[% javascript = BLOCK %]
var usetms = 0; // do we have target milestone?
var first_load = 1; // is this the first time we load the page?
@@ -36,10 +36,6 @@
[% END %]
[% END %]
-[% header_html = BLOCK %]
- <script language="JavaScript" type="text/javascript" src="productmenu.js"></script>
-[% END %]
-
[% filter_form = BLOCK %]
<form action="request.cgi" method="get">
<input type="hidden" name="action" value="queue">
@@ -133,6 +129,8 @@
table.requests th { text-align: left; }
table#filter th { text-align: right; }
"
+ onload="selectProduct(document.forms[0], 'product', 'component', 'Any');"
+ javascript_urls=["productmenu.js"]
%]
[% IF debug %]