diff options
-rw-r--r-- | lib/rhbzpage.js | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/lib/rhbzpage.js b/lib/rhbzpage.js index 463a546..2ab161f 100644 --- a/lib/rhbzpage.js +++ b/lib/rhbzpage.js @@ -276,15 +276,19 @@ RHBugzillaPage.prototype.addAttachment = function addAttachment(data, callback, * */ RHBugzillaPage.prototype.pasteBacktraceInComments = function() { - // TODO This paragraph looks suspicous ... what is it? - // Does it belong to this function? var that = this; + + /* + Let's comment it out, and we'll see if anything breaks. + TODO This paragraph looks suspicous ... what is it? + Does it belong to this function? var notedLabel = this.doc.querySelector("label[for='newcc']"); while (notedLabel.firstChild) { var node = notedLabel.removeChild(notedLabel.firstChild); notedLabel.parentNode.insertBefore(node, notedLabel); } notedLabel.parentNode.removeChild(notedLabel); + */ var abrtQueryURL = "https://bugzilla.redhat.com/buglist.cgi?" + "cmdtype=dorem&remaction=run&namedcmd=all%20NEW%20abrt%20crashes&"+ @@ -440,10 +444,10 @@ RHBugzillaPage.prototype.addCheckShowLink = function addCheckShowLink(oldAtt, sn /** * Make it sailent that the some attachments with bad MIME type are present * - * @param none // TODO we should make it more functional + * @param atts Array of attachments subarrays * @return none */ -RHBugzillaPage.prototype.markBadAttachments = function() { +RHBugzillaPage.prototype.markBadAttachments = function(atts) { var that = this; var badMIMEArray = [ "application/octet-stream", "text/x-log", "undefined" ]; if (!this.password) { @@ -451,7 +455,7 @@ RHBugzillaPage.prototype.markBadAttachments = function() { // should be switched off. } - var badAttachments = this.attachments.filter(function(att, idx, arr) { + var badAttachments = atts.filter(function(att, idx, arr) { return (util.isInList(att[2], badMIMEArray)); }); |