diff options
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; } |