summaryrefslogtreecommitdiffstats
path: root/extensions/ProdCompSearch
diff options
context:
space:
mode:
authorDave Lawrence <dlawrence@mozilla.com>2013-03-13 05:00:37 +0100
committerDave Lawrence <dlawrence@mozilla.com>2013-03-13 05:00:37 +0100
commitfa7374cc4f98ce48ca49ef9e975734de6bfb8097 (patch)
treef48e917b28d3ff75b023a83d6b7321adbd6f3684 /extensions/ProdCompSearch
parent40a7a3f2d4f196e9cd52defce04c34a65910ed74 (diff)
downloadbugzilla-fa7374cc4f98ce48ca49ef9e975734de6bfb8097.tar.gz
bugzilla-fa7374cc4f98ce48ca49ef9e975734de6bfb8097.tar.xz
Bug 850146 - describecomponents.cgi does not use fragment identifier, only colors the entry with green
Diffstat (limited to 'extensions/ProdCompSearch')
-rw-r--r--extensions/ProdCompSearch/web/js/prod_comp_search.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/extensions/ProdCompSearch/web/js/prod_comp_search.js b/extensions/ProdCompSearch/web/js/prod_comp_search.js
index f58a8d330..bc0f41a2b 100644
--- a/extensions/ProdCompSearch/web/js/prod_comp_search.js
+++ b/extensions/ProdCompSearch/web/js/prod_comp_search.js
@@ -97,6 +97,9 @@ YUI({
if (ProdCompSearch.cloned_bug_id)
url += "&cloned_bug_id=" + encodeURIComponent(ProdCompSearch.cloned_bug_id);
}
+ if (ProdCompSearch.script_name == 'describecomponents.cgi') {
+ url += "#" + encodeURIComponent(data.component);
+ }
window.location.href = url;
}
}