From 425ee15d1c18b9e2dbf3282239bb315beb3b5d52 Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Fri, 18 Dec 2009 11:54:48 +0100 Subject: Don't eliminate title, just add "Abrt bugs" link. .clone() isn't a method of DOM element (temporary jquerize the element) --- bugzillaBugTriage.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'bugzillaBugTriage.js') diff --git a/bugzillaBugTriage.js b/bugzillaBugTriage.js index df59ad6..a66c7d0 100644 --- a/bugzillaBugTriage.js +++ b/bugzillaBugTriage.js @@ -715,7 +715,7 @@ BzPage.prototype.addNewButton = function (originalLocation,newId,newLabel, if (msgStrs[commentString]) { commStr = msgStrs[commentString]; } - var newButton = this.originalButton.clone(true).attr({ + var newButton = $(this.originalButton,this.doc).clone(true).attr({ "id":newId, "value":newLabel }).click(function (evt) { @@ -1450,9 +1450,13 @@ function BzPage(doc) { } notedLabel.parentNode.removeChild(notedLabel); - this.dok.getElementsByClassName("bz_alias_short_desc_container")[0]. - innerHTML = "\u00A0Abrt bugs"; + var mainTitle = this.dok. + getElementsByClassName("bz_alias_short_desc_container")[0]; + var abrtButton = this.dok.createElement("a"); + abrtButton.setAttribute("accesskey","a"); + abrtButton.setAttribute("href",abrtQueryURL); + abrtButton.textContent = "Abrt bugs"; + mainTitle.appendChild(abrtButton); if (!(this.hasKeyword("Triaged") || (/btparsed/.test(this.dok. -- cgit