aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2010-07-21 00:49:33 +0200
committerMatěj Cepl <mcepl@redhat.com>2010-07-21 00:49:33 +0200
commit8b90a189a3a341791796a71df856c6a2880ee319 (patch)
tree8a94947a6f45db8c2b8872925b2c0e55ec4f2dab /lib
parent4a608b702c534448e83efac163d6ac7275be8596 (diff)
downloadbugzilla-triage-8b90a189a3a341791796a71df856c6a2880ee319.tar.gz
Makes the scroll-down menu work on bugizlla.mozilla.org
- so far tested only with MoFo object - fixes #27
Diffstat (limited to 'lib')
-rw-r--r--lib/bzpage.js6
-rw-r--r--lib/mozillabzpage.js1
2 files changed, 5 insertions, 2 deletions
diff --git a/lib/bzpage.js b/lib/bzpage.js
index ff616ea..e5797fd 100644
--- a/lib/bzpage.js
+++ b/lib/bzpage.js
@@ -346,11 +346,13 @@ BZPage.prototype.addToCommentsDropdown = function addToCommentsDropdown (pkg, cm
" <option value=''>-- Select Comment from List --</option>" +
"</div>";
select = this.doc.getElementById("comment_action");
- select.addEventListener("change", function () {
+ select.addEventListener("change", function (evt) {
var value = "";
var valueElement = that.doc.getElementById("comment_action");
if (valueElement) {
- value = valueElement.getAttribute("value");
+ var selIdx = valueElement.selectedIndex;
+ value = valueElement.options[selIdx].value;
+ console.log("value = " + value);
} else {
return;
}
diff --git a/lib/mozillabzpage.js b/lib/mozillabzpage.js
index 69e2926..31f6332 100644
--- a/lib/mozillabzpage.js
+++ b/lib/mozillabzpage.js
@@ -3,6 +3,7 @@
"use strict";
var utilMod = require("util");
var apiUtils = require("api-utils");
+var BZPage = require("bzpage").BZPage;
// ============================================================================
// MozillaBugzilla object