Bug 544641: Add a temporary button to add blocks dependency to bug
536055
Change-Id: Ic81f5c891fd89316ca3ca1560bfee1a000d6150f
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 @@
}
}
- // 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;
}
});