diff options
author | Matěj Cepl <mcepl@redhat.com> | 2010-07-21 00:49:33 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2010-07-21 00:49:33 +0200 |
commit | 8b90a189a3a341791796a71df856c6a2880ee319 (patch) | |
tree | 8a94947a6f45db8c2b8872925b2c0e55ec4f2dab /lib/bzpage.js | |
parent | 4a608b702c534448e83efac163d6ac7275be8596 (diff) | |
download | bugzilla-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/bzpage.js')
-rw-r--r-- | lib/bzpage.js | 6 |
1 files changed, 4 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; } |