aboutsummaryrefslogtreecommitdiffstats
path: root/bugzillaBugTriage.js
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2009-11-20 00:39:08 +0100
committerMatěj Cepl <mcepl@redhat.com>2009-11-20 00:39:08 +0100
commit648b3072478a7cc034d6a80b02756e1f6a0eda4c (patch)
treeb9e9e009157dbabc42dc627608eb8235cf321f16 /bugzillaBugTriage.js
parent85081ddc1f4e03ef316018852da7293d835b67f4 (diff)
downloadbugzilla-triage-648b3072478a7cc034d6a80b02756e1f6a0eda4c.tar.gz
Yey, 100% functional parity with the Greasemonkey script!
Diffstat (limited to 'bugzillaBugTriage.js')
-rw-r--r--bugzillaBugTriage.js12
1 files 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("<br/>").
+ append("<a href=''>Text</a>").
+ click(function (event) {
that.fixAttachById(row[1],"text/plain");
});
-
- $("a",row).after(tElem).after("<br/>");
};
/**