diff options
| author | Noopur Gupta | 2019-02-20 18:01:22 +0000 |
|---|---|---|
| committer | Noopur Gupta | 2019-02-20 18:01:22 +0000 |
| commit | 7fd51f3d6a303cdaf768b0cfa21a55ad5ff5c6f5 (patch) | |
| tree | 8a37620b8d3e4a93babd97b78bceaa98794ff511 | |
| parent | 9a72f6e835a689f00ef04cdf422475a9f331e275 (diff) | |
| download | jdt-7fd51f3d6a303cdaf768b0cfa21a55ad5ff5c6f5.tar.gz jdt-7fd51f3d6a303cdaf768b0cfa21a55ad5ff5c6f5.tar.xz jdt-7fd51f3d6a303cdaf768b0cfa21a55ad5ff5c6f5.zip | |
Bug 544641: Add a temporary button to add blocks dependency to bug
536055
Change-Id: I8b9629a85ab94092b2d28b09dfd26d30d6c6347e
| -rw-r--r-- | ui/scripts/jdtbugzilla.user.js | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/ui/scripts/jdtbugzilla.user.js b/ui/scripts/jdtbugzilla.user.js index afb03fe..94c99af 100644 --- a/ui/scripts/jdtbugzilla.user.js +++ b/ui/scripts/jdtbugzilla.user.js @@ -34,7 +34,7 @@ // @resource config https://www.eclipse.org/jdt/ui/scripts/jdtbugzilla.config.js // @downloadURL https://www.eclipse.org/jdt/ui/scripts/jdtbugzilla.user.js // @updateURL https://www.eclipse.org/jdt/ui/scripts/jdtbugzilla.user.js -// @version 1.20190219T0606 +// @version 1.20190220T1759 // @include https://bugs.eclipse.org/bugs/show_bug.cgi* // @include https://bugs.eclipse.org/bugs/process_bug.cgi @@ -2433,6 +2433,27 @@ function process_result_pages() { } } + // Add JDT Core Java 12 root bug to 'Blocks' + var blocksLabel= document.getElementById("field_label_blocked"); + if (blocksLabel) { + var rootBugButton= document.createElement("button"); + var rootTextElem = document.createTextNode("ROOT"); + rootBugButton.appendChild(rootTextElem); + rootBugButton.style.marginLeft= "1em"; + + rootBugButton.addEventListener('click', function() { + var blockedElem= document.getElementById("blocked"); + if (blockedElem) { + blockedElem.value += 536055; + } + }); + + var trElem= blocksLabel.parentNode; + var tdElem= document.createElement("td"); + tdElem.appendChild(rootBugButton); + trElem.appendChild(tdElem); + } + // Add a convenient Commit button: var bz_qa_contact_inputElem= document.getElementById("bz_qa_contact_input"); if (bz_qa_contact_inputElem) { |
