Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNoopur Gupta2019-03-06 11:18:28 +0000
committerNoopur Gupta2019-03-06 11:18:28 +0000
commit1950bdab92ed1dd4f75967352329d43b76d2e16c (patch)
tree02df3ae99db9a7bb69c5c2e2d9cbd2b293d33623
parent821e22c6ceb5729f24742956dba92b3cf7d9a1f9 (diff)
downloadjdt-1950bdab92ed1dd4f75967352329d43b76d2e16c.tar.gz
jdt-1950bdab92ed1dd4f75967352329d43b76d2e16c.tar.xz
jdt-1950bdab92ed1dd4f75967352329d43b76d2e16c.zip
Bug 544641: Add a temporary button to add blocks dependency to bug
-rw-r--r--ui/scripts/jdtbugzilla.user.js27
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;
}
});

Back to the top