aboutsummaryrefslogtreecommitdiffstats
path: root/bugzillaBugTriage.js
diff options
context:
space:
mode:
Diffstat (limited to 'bugzillaBugTriage.js')
-rw-r--r--bugzillaBugTriage.js12
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.