diff options
| author | Noopur Gupta | 2019-03-06 11:18:28 +0000 |
|---|---|---|
| committer | Noopur Gupta | 2019-03-06 11:18:28 +0000 |
| commit | 1950bdab92ed1dd4f75967352329d43b76d2e16c (patch) | |
| tree | 02df3ae99db9a7bb69c5c2e2d9cbd2b293d33623 | |
| parent | 821e22c6ceb5729f24742956dba92b3cf7d9a1f9 (diff) | |
| download | jdt-1950bdab92ed1dd4f75967352329d43b76d2e16c.tar.gz jdt-1950bdab92ed1dd4f75967352329d43b76d2e16c.tar.xz jdt-1950bdab92ed1dd4f75967352329d43b76d2e16c.zip | |
Bug 544641: Add a temporary button to add blocks dependency to bug
536055
Change-Id: Ic81f5c891fd89316ca3ca1560bfee1a000d6150f
| -rw-r--r-- | ui/scripts/jdtbugzilla.user.js | 27 |
1 files changed, 24 insertions, 3 deletions
diff --git a/ui/scripts/jdtbugzilla.user.js b/ui/scripts/jdtbugzilla.user.js index da050f5..56f7470 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.20190225T0703 +// @version 1.20190306T1118 // @include https://bugs.eclipse.org/bugs/show_bug.cgi* // @include https://bugs.eclipse.org/bugs/process_bug.cgi @@ -2433,17 +2433,38 @@ function process_result_pages() { } } - // Add JDT Core Java 12 root bug to 'Blocks' + // Add JDT UI 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_12"); + var rootTextElem = document.createTextNode("UI12"); rootBugButton.appendChild(rootTextElem); rootBugButton.style.marginLeft= "1em"; rootBugButton.addEventListener('click', function() { var blockedElem= document.getElementById("blocked"); if (blockedElem) { + blockedElem.value += 545120; + } + }); + + var trElem= blocksLabel.parentNode; + var tdElem= document.createElement("td"); + tdElem.appendChild(rootBugButton); + trElem.appendChild(tdElem); + } + + // 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("CORE12"); + rootBugButton.appendChild(rootTextElem); + //rootBugButton.style.marginLeft= "1em"; + + rootBugButton.addEventListener('click', function() { + var blockedElem= document.getElementById("blocked"); + if (blockedElem) { blockedElem.value += 536055; } }); |
