From 8e501abd49e5aeac70a84ceef96a72b5078df221 Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Sat, 7 May 2011 00:53:06 +0200 Subject: 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 --- data/tweaks/addNewLinks.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'data/tweaks/addNewLinks.js') 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=' -- cgit