summaryrefslogtreecommitdiffstats
path: root/template/en/default/global/js-products.html.tmpl
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/global/js-products.html.tmpl
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/global/js-products.html.tmpl')
-rw-r--r--template/en/default/global/js-products.html.tmpl10
1 files changed, 6 insertions, 4 deletions
diff --git a/template/en/default/global/js-products.html.tmpl b/template/en/default/global/js-products.html.tmpl
index 57126f004..dbc1c2e1e 100644
--- a/template/en/default/global/js-products.html.tmpl
+++ b/template/en/default/global/js-products.html.tmpl
@@ -22,12 +22,14 @@
[%# 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?
- var last_sel = []; // caches last selection
+ var useclassification = false; // No classification level in use
+ var first_load = true; // Is this the first time we load the page?
+ var last_sel = []; // Caches last selection
var cpts = new Array();
+ [% n = 1 %]
[% FOREACH prod = products %]
- cpts['[% prod.name FILTER js %]'] = [
+ cpts['[% n %]'] = [
[%- FOREACH comp = prod.components %]'[% comp.name FILTER js %]'[% ", " UNLESS loop.last %] [%- END -%] ];
+ [% n = n+1 %]
[% END %]
[% END %]