diff options
author | Matěj Cepl <mcepl@redhat.com> | 2011-05-07 00:53:06 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2011-05-07 01:43:05 +0200 |
commit | 9d6c70c656052e1c4f7df7a255c4f493d56f08c8 (patch) | |
tree | 01ef018b9cc3d7c7019bd36598f7472f4e0abb09 /data/tweaks/addNewLinks.js | |
parent | ce11514ac83f11d6762fd38b01d7846d617402f8 (diff) | |
download | bugzilla-triage-9d6c70c656052e1c4f7df7a255c4f493d56f08c8.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.js | 10 |
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=' |