aboutsummaryrefslogtreecommitdiffstats
path: root/data/tweaks/addNewLinks.js
diff options
context:
space:
mode:
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='