aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2010-08-19 13:43:29 -0400
committerMatěj Cepl <mcepl@redhat.com>2010-09-17 17:08:14 +0200
commit91e43addcad1bb62ee54204143698c154e90a638 (patch)
tree2a3b54dc8166f78d3900e85cbee99480f931ed35 /lib
parent0dbceb72931b61af1c835f86b5f8fe0b9770805d (diff)
downloadbugzilla-triage-91e43addcad1bb62ee54204143698c154e90a638.tar.gz
Wrong id parameter of <a id='showBacktrace' element
Diffstat (limited to 'lib')
-rw-r--r--lib/rhbzpage.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/rhbzpage.js b/lib/rhbzpage.js
index 9acb299..fe77b0c 100644
--- a/lib/rhbzpage.js
+++ b/lib/rhbzpage.js
@@ -242,6 +242,8 @@ RHBugzillaPage.prototype.addAttachment = function addAttachment(data, callback)
msg.addParameter({
description: "Interesting part of the thread backtrace where crash happened.",
filename: "parsed-backtrace.txt",
+ // Isn't this weird ... base64 and text/plain??? FIXME
+ // and XML-RPC and text/plain?
contenttype: "text/plain",
data: this.win.btoa(data),
nomail: true
@@ -345,10 +347,11 @@ RHBugzillaPage.prototype.showAttachment = function showAttachment(id) {
};
RHBugzillaPage.prototype.addNewAttachmentRow = function addNewAttachmentRow(oldRow) {
+ var that = this;
var newTRElem = oldRow.cloneNode(true);
- var elem = newTRElem.querySelector("td:last-of-type");
- elem.innerHTML += "<br/><a id='#showBacktrace' href='#'>show BT</a>";
- elem.addEventListener("click", function(evt) {
+ var elem = newTRElem.querySelector("td:last-of-type");
+ elem.innerHTML += "<br/><a id='showBacktrace' href='#'>show BT</a>";
+ elem.getElementById("showBacktrace").addEventListener("click", function(evt) {
that.showAttachment.call(that,attID);
},false);
oldRow.parentNode.insertBefore(newTRElem,oldRow.nextSibling);