diff options
-rw-r--r-- | lib/rhbzpage.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/rhbzpage.js b/lib/rhbzpage.js index 0c3c0e9..d63257b 100644 --- a/lib/rhbzpage.js +++ b/lib/rhbzpage.js @@ -444,6 +444,7 @@ RHBugzillaPage.prototype.addCheckShowLink = function addCheckShowLink(oldAtt, sn * @return none */ RHBugzillaPage.prototype.markBadAttachments = function() { + var that = this; var badMIMEArray = [ "application/octet-stream", "text/x-log", "undefined" ]; if (!this.password) { return ; // User didn't provide password, so whole MIME fixing business @@ -862,7 +863,7 @@ RHBugzillaPage.prototype.XMLRPCcallback = function XMLRPCcallback() { * this change }; * */ -RHBugzillaPage.prototype.fixAttachById = function(id, type, email) { +RHBugzillaPage.prototype.fixAttachById = function fixAttachById(id, type, email) { if (type === undefined) { type = "text/plain"; } @@ -903,13 +904,13 @@ RHBugzillaPage.prototype.fixAttachById = function(id, type, email) { * <TR> DOM jQuery element with a bad attachment * @return none */ -RHBugzillaPage.prototype.addTextLink = function(row) { +RHBugzillaPage.prototype.addTextLink = function addTextLink(row) { var that = this; var elemS = row[4].getElementsByTagName("td"); var elem = elemS[elemS.length - 1]; elem.innerHTML += "<br/><a href=''>Text</a>"; elem.addEventListener("click", function(x) { - that.fixAttachById(row[1], "text/plain"); + that.fixAttachById(row[1]); }, false); }; |