aboutsummaryrefslogtreecommitdiffstats
path: root/data/tweaks/addNewLinks.js
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2011-05-07 00:53:06 +0200
committerMatěj Cepl <mcepl@redhat.com>2011-06-05 14:53:46 +0200
commit8e501abd49e5aeac70a84ceef96a72b5078df221 (patch)
tree2cb8df170588aaee5872b752d11d6a6c39a766cc /data/tweaks/addNewLinks.js
parent59d6e1bf4e439febbc40c15486303e12febb7e42 (diff)
downloadbugzilla-triage-8e501abd49e5aeac70a84ceef96a72b5078df221.tar.gz
Another massive cleanup and simplification of tweak scripts.
bugs on bugzilla.mozilla.org now work as well, although the history is still not shown inline, which remains for 1.1. Fixes #88
Diffstat (limited to 'data/tweaks/addNewLinks.js')
-rw-r--r--data/tweaks/addNewLinks.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/data/tweaks/addNewLinks.js b/data/tweaks/addNewLinks.js
index b8e7bd2..05d5ffb 100644
--- a/data/tweaks/addNewLinks.js
+++ b/data/tweaks/addNewLinks.js
@@ -35,13 +35,13 @@
*
* ***** END LICENSE BLOCK ***** */
-function addNewLinks(d) {
- var product = d
+function addNewLinks() {
+ var product = document
.querySelector("#field_container_product option[selected]");
- var component = d.querySelector("#component option[selected]");
+ var component = document.querySelector("#component option[selected]");
if (product) {
- var label = d.getElementById('field_container_product');
+ var label = document.getElementById('field_container_product');
var url = 'enter_bug.cgi?product='
+ encodeURIComponent(product.value);
if (label) {
@@ -51,7 +51,7 @@ function addNewLinks(d) {
}
if (product && component) {
- var select = d.querySelector("select#component");
+ var select = document.querySelector("select#component");
var label = select.parentNode;
var url = 'enter_bug.cgi?product='
+ encodeURIComponent(product.value) + '&component='