diff options
Diffstat (limited to 'bugzillaBugTriage.js')
-rw-r--r-- | bugzillaBugTriage.js | 12 |
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") { |