aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2010-09-27 11:57:59 +0200
committerMatěj Cepl <mcepl@redhat.com>2010-09-27 11:57:59 +0200
commit6db2218d0fa9a002a4222a37a2fbf205546bff27 (patch)
tree531b2f1aa501331e11b56842afbf935efea47259 /lib
parentb246f6a154c113aaa98a81a56588acf9d647e03e (diff)
downloadbugzilla-triage-6db2218d0fa9a002a4222a37a2fbf205546bff27.tar.gz
Fix fixAllButton (missing that = this).
Fixes #53.
Diffstat (limited to 'lib')
-rw-r--r--lib/rhbzpage.js7
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);
};