diff options
author | Matěj Cepl <mcepl@redhat.com> | 2009-12-18 11:54:48 +0100 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2009-12-18 11:54:48 +0100 |
commit | 425ee15d1c18b9e2dbf3282239bb315beb3b5d52 (patch) | |
tree | 687e5edd351e6afaf27652b310ed0190d33af454 /bugzillaBugTriage.js | |
parent | a4014491e407f2b8081b1fe2d313d050be375d59 (diff) | |
download | bugzilla-triage-425ee15d1c18b9e2dbf3282239bb315beb3b5d52.tar.gz |
Don't eliminate title, just add "Abrt bugs" link.
.clone() isn't a method of DOM element (temporary jquerize the element)
Diffstat (limited to 'bugzillaBugTriage.js')
-rw-r--r-- | bugzillaBugTriage.js | 12 |
1 files changed, 8 insertions, 4 deletions
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 = "\u00A0<a accesskey='a' href='"+ - abrtQueryURL+"'>Abrt bugs</a>"; + 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. |