From 648b3072478a7cc034d6a80b02756e1f6a0eda4c Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Fri, 20 Nov 2009 00:39:08 +0100 Subject: Yey, 100% functional parity with the Greasemonkey script! --- bugzillaBugTriage.js | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/bugzillaBugTriage.js b/bugzillaBugTriage.js index 68aa2ee..bef3df1 100644 --- a/bugzillaBugTriage.js +++ b/bugzillaBugTriage.js @@ -1121,18 +1121,12 @@ bzPage.prototype.createFixAllButton = function (list) { * CURRENTLY BROKEN */ bzPage.prototype.addTextLink = function (row) { - var aList = row[row.length-1].getElementsByTagName("a"); - var curElem = aList[aList.length-1]; - var tElem = {}; - var t2Elem = {}; var that = this; - - var tElem = this.doc.get(0).createElement("a"); - var jElem = $(tElem).attr("href","").click(function (event) { + $("td:last", row).append("
"). + append("Text"). + click(function (event) { that.fixAttachById(row[1],"text/plain"); }); - - $("a",row).after(tElem).after("
"); }; /** -- cgit