aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2010-01-11 18:29:41 +0100
committerMatěj Cepl <mcepl@redhat.com>2010-01-11 18:29:41 +0100
commitb0cb50e7e4fc468284f78c6d2768454160c6b27a (patch)
treeadeefe905891a1e6029814aef5e2be9631e17cb1
parent10f87e54be515e61a86c1d0c8de4c0dc2a0f41ec (diff)
downloadbugzilla-triage-b0cb50e7e4fc468284f78c6d2768454160c6b27a.tar.gz
More struggle to accommodate new bugzilla
-rw-r--r--bugzillaBugTriage.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/bugzillaBugTriage.js b/bugzillaBugTriage.js
index afff0b1..aad78ce 100644
--- a/bugzillaBugTriage.js
+++ b/bugzillaBugTriage.js
@@ -1461,6 +1461,11 @@ BzPage.prototype.buildButtons = function (above,below) {
var commentArea = this.dok.getElementById("comment_status_commit");
var brElementPlacer = commentArea.getElementsByTagName("br")[0];
+ if (queryButtonAvailable || upstreamButtonAvailable) {
+ brElementPlacer.parentNode.insertBefore(this.dok.createElement("br"),
+ brElementPlacer);
+ }
+
if (queryButtonAvailable) {
// Add query search button
this.addNewButton(brElementPlacer,"newqueryintab",
@@ -1471,6 +1476,13 @@ BzPage.prototype.buildButtons = function (above,below) {
this.addNewButton(brElementPlacer,"sendupstream",
"Send upstream","","SENDUPSTREAM","",false);
}
+
+ var brElement2BMoved = this.dok.querySelector("#comment_status_commit br:last-of-type");
+// var brWhereMove = this.dok.getElementsByClassName("status")[0];
+// brWhereMove.parentNode.insertBefore(brElement2BMoved.cloneNode(true),
+// brWhereMove);
+ brElement2BMoved.parentNode.removeChild(brElement2BMoved);
+
// TODO Get compiz bugs as well
if ((chipIDsGroupings.length >0) &&
this.maintCCAddr === "xgl-maint@redhat.com") {