summaryrefslogtreecommitdiffstats
path: root/template/en/default
diff options
context:
space:
mode:
authorcaillon%returnzero.com <>2002-05-05 12:08:50 +0200
committercaillon%returnzero.com <>2002-05-05 12:08:50 +0200
commit3b0b95d36d3e8b4ebea4d8e32d5337623cc13ba2 (patch)
treeca5e5a77ae7c49fbd634cf3f5423ecf7175416d7 /template/en/default
parent23b4d25aa7e6307ce908d0f21869d8470bfee85d (diff)
downloadbugzilla-3b0b95d36d3e8b4ebea4d8e32d5337623cc13ba2.tar.gz
bugzilla-3b0b95d36d3e8b4ebea4d8e32d5337623cc13ba2.tar.xz
Rename getSelection to get_selection. Fixes bug 141716, Mozilla context menus were broken on query.cgi because of getSelection overriding the native method which is used by Mozilla's context menu code. r=bbaetz x2
Diffstat (limited to 'template/en/default')
-rw-r--r--template/en/default/search/form.html.tmpl10
1 files changed, 5 insertions, 5 deletions
diff --git a/template/en/default/search/form.html.tmpl b/template/en/default/search/form.html.tmpl
index 916039743..790feee64 100644
--- a/template/en/default/search/form.html.tmpl
+++ b/template/en/default/search/form.html.tmpl
@@ -207,7 +207,7 @@ function merge_arrays(a, b, b_is_select) {
# indexes
# - want_values: boolean; we store values when true and indexes when
# false %]
-function getSelection(control, findall, want_values) {
+function get_selection(control, findall, want_values) {
var ret = new Array();
if ((!findall) && (control.selectedIndex == -1)) {
@@ -281,7 +281,7 @@ function selectProduct(f) {
[%# if nothing selected, pick all %]
var findall = f.product.selectedIndex == -1;
- sel = getSelection(f.product, findall, false);
+ sel = get_selection(f.product, findall, false);
if (!findall) {
[%# save sel for the next invocation of selectProduct() %]
var tmp = sel;
@@ -297,10 +297,10 @@ function selectProduct(f) {
last_sel = tmp;
}
[%# save original options selected %]
- var saved_cpts = getSelection(f.component, false, true);
- var saved_vers = getSelection(f.version, false, true);
+ var saved_cpts = get_selection(f.component, false, true);
+ var saved_vers = get_selection(f.version, false, true);
[% IF Param('usetargetmilestone') %]
- var saved_tms = getSelection(f.target_milestone, false, true);
+ var saved_tms = get_selection(f.target_milestone, false, true);
[% END %]
[%# do the actual fill/update, reselect originally selected options %]