aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rhbzpage.js
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2010-09-30 00:22:24 +0200
committerMatěj Cepl <mcepl@redhat.com>2010-09-30 00:31:46 +0200
commit29699cd28c82b221a79feaa7dbb4a46beb51b5d8 (patch)
treece5c15489a4f60046c674a1fc82a602d5941ef61 /lib/rhbzpage.js
parentc14ca2331d1bea1e4122e59f871c71cc82aea538 (diff)
downloadbugzilla-triage-29699cd28c82b221a79feaa7dbb4a46beb51b5d8.tar.gz
Use createDeadLink method, it's better for your soul.
Diffstat (limited to 'lib/rhbzpage.js')
-rw-r--r--lib/rhbzpage.js17
1 files changed, 5 insertions, 12 deletions
diff --git a/lib/rhbzpage.js b/lib/rhbzpage.js
index 20dac39..463a546 100644
--- a/lib/rhbzpage.js
+++ b/lib/rhbzpage.js
@@ -624,13 +624,9 @@ RHBugzillaPage.prototype.addCheckXorgLogLink = function addCheckXorgLogLink() {
this.XorgLogAttList.forEach(function (row) {
var elemS = row[4].getElementsByTagName("td");
var elem = elemS[elemS.length - 1];
- elem.innerHTML += "<br/><a href=''>check</a>";
- elem.addEventListener("click", function(x) {
- that.analyzeXorgLog(row[1]);
- evt.stopPropagation();
- evt.preventDefault();
- }, false);
- }, this);
+ that.createDeadLink("xorgLogAnalyzeLink", "check", elem,
+ that.analyzeXorgLog, row[1], "br");
+ });
}
};
@@ -905,13 +901,10 @@ RHBugzillaPage.prototype.fixAttachById = function fixAttachById(id, type, email)
* @return none
*/
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]);
- }, false);
+ this.createDeadLink("addFix2TextLink", "text", elem,
+ this.fixAttachById, row[1], "br");
};
/**