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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ivan Ivlev
bugzilla
Commits
38cbb6ac
Commit
38cbb6ac
authored
Feb 28, 2012
by
Frédéric Buclin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 695514: Slow performance in field-events.js.tmpl on show_bug.cgi with large number of products
r=dkl a=LpSolit
parent
f0e69404
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
3 deletions
+14
-3
create.html.tmpl
template/en/default/bug/create/create.html.tmpl
+1
-1
field-events.js.tmpl
template/en/default/bug/field-events.js.tmpl
+11
-1
field.html.tmpl
template/en/default/bug/field.html.tmpl
+2
-1
No files found.
template/en/default/bug/create/create.html.tmpl
View file @
38cbb6ac
...
...
@@ -231,7 +231,7 @@ TUI_hide_default('attachment_text_field');
<script type="text/javascript">
<!--
[%+ INCLUDE "bug/field-events.js.tmpl"
field = bug_fields.componen
t %]
field = bug_fields.component, product = produc
t %]
//-->
</script>
</td>
...
...
template/en/default/bug/field-events.js.tmpl
View file @
38cbb6ac
...
...
@@ -8,6 +8,8 @@
[%# INTERFACE:
# field: a Bugzilla::Field object
# product: (optional) a Bugzilla::Product object. When specified,
# components are restricted to this product.
#%]
[% FOREACH controlled_field = field.controls_visibility_of %]
...
...
@@ -18,7 +20,15 @@
[%- END %]
]);
[% END %]
[% FOREACH legal_value = field.legal_values %]
[% legal_values = [] %]
[% IF field.name == "component" AND product %]
[% legal_values = product.components %]
[% ELSE %]
[% legal_values = field.legal_values %]
[% END %]
[% FOREACH legal_value = legal_values %]
[% FOREACH controlled_field = legal_value.controlled_values.keys %]
[% SET cont_ids = [] %]
[% FOREACH val = legal_value.controlled_values.$controlled_field %]
...
...
template/en/default/bug/field.html.tmpl
View file @
38cbb6ac
...
...
@@ -133,7 +133,8 @@
<script type="text/javascript">
<!--
initHidingOptionsForIE('[% field.name FILTER js %]');
[%+ INCLUDE "bug/field-events.js.tmpl" field = field %]
[%+ INCLUDE "bug/field-events.js.tmpl"
field = field, product = bug.product_obj %]
//-->
</script>
...
...
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