summaryrefslogtreecommitdiffstats
path: root/template/en/default/admin/flag-type
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2007-04-18 05:08:06 +0200
committerlpsolit%gmail.com <>2007-04-18 05:08:06 +0200
commit0cd4b869322d7f338412d604f2756d64057c9db0 (patch)
treeeec8d6284a229ad5e8f2738970ad541b60db31a8 /template/en/default/admin/flag-type
parentfcdf86c3d914652a3d63a70706a21eaf96950f4f (diff)
downloadbugzilla-0cd4b869322d7f338412d604f2756d64057c9db0.tar.gz
bugzilla-0cd4b869322d7f338412d604f2756d64057c9db0.tar.xz
Bug 258647: productmenu.js and productform.js should be consolidated - Patch by Teemu Mannermaa <wicked+bz@etlicon.fi> r=myk a=LpSolit
Diffstat (limited to 'template/en/default/admin/flag-type')
-rw-r--r--template/en/default/admin/flag-type/edit.html.tmpl6
-rw-r--r--template/en/default/admin/flag-type/list.html.tmpl6
2 files changed, 6 insertions, 6 deletions
diff --git a/template/en/default/admin/flag-type/edit.html.tmpl b/template/en/default/admin/flag-type/edit.html.tmpl
index 4e2edd5a4..d7add7738 100644
--- a/template/en/default/admin/flag-type/edit.html.tmpl
+++ b/template/en/default/admin/flag-type/edit.html.tmpl
@@ -46,8 +46,8 @@
table#form th { text-align: right; vertical-align: baseline; white-space: nowrap; }
table#form td { text-align: left; vertical-align: baseline; }
"
- onload="selectProduct(document.forms[0], 'product', 'component', '__Any__');"
- javascript_urls=["productmenu.js"]
+ onload="var f = document.forms[0]; selectProduct(f.product, f.component, null, null, '__Any__');"
+ javascript_urls=["js/productform.js"]
%]
<form method="post" action="editflagtypes.cgi">
@@ -100,7 +100,7 @@
<tr>
<td style="vertical-align: top;">
<b>Product/Component:</b><br>
- <select name="product" onchange="selectProduct(this.form, 'product', 'component', '__Any__');">
+ <select name="product" onchange="selectProduct(this, this.form.component, null, null, '__Any__');">
<option value="">__Any__</option>
[% FOREACH prod = products %]
<option value="[% prod.name FILTER html %]"
diff --git a/template/en/default/admin/flag-type/list.html.tmpl b/template/en/default/admin/flag-type/list.html.tmpl
index 3346f9570..c6046a766 100644
--- a/template/en/default/admin/flag-type/list.html.tmpl
+++ b/template/en/default/admin/flag-type/list.html.tmpl
@@ -31,8 +31,8 @@
.inactive { color: #787878; }
.multiplicable { display: block; }
"
- onload="selectProduct(document.forms[0], 'product', 'component', '__All__');"
- javascript_urls=["productmenu.js"]
+ onload="var f = document.forms[0]; selectProduct(f.product, f.component, null, null, '__All__');"
+ javascript_urls=["js/productform.js"]
%]
<p>
@@ -60,7 +60,7 @@
<tr>
<th><label for="product">Product:</label></th>
<td>
- <select name="product" onchange="selectProduct(this.form, 'product', 'component', '__Any__');">
+ <select name="product" onchange="selectProduct(this, this.form.component, null, null, '__Any__');">
<option value="">__Any__</option>
[% FOREACH prod = products %]
<option value="[% prod.name FILTER html %]"