aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rhbzpage.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rhbzpage.js')
-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);