aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2012-06-26 16:22:13 +0200
committerMatěj Cepl <mcepl@redhat.com>2012-06-26 16:22:13 +0200
commit065050a6a64761ca9e76ea4bbd9b90343c1ccfa4 (patch)
tree9923ff1402d871ca052af85f48c46223f6521661
parent3dc70b30f31321f2f9c11ce814abd8a170ec2a42 (diff)
downloadbugzilla-triage-065050a6a64761ca9e76ea4bbd9b90343c1ccfa4.tar.gz
Update JSONs to the latest bugzilla.
And add a bit of instrumentation for next, when bugzilla changes again.
-rw-r--r--data/lib/bugzillaDOMFunctions.js16
-rw-r--r--jsons/Config_data.json6
-rw-r--r--package.json2
-rw-r--r--update.rdf15
4 files changed, 29 insertions, 10 deletions
diff --git a/data/lib/bugzillaDOMFunctions.js b/data/lib/bugzillaDOMFunctions.js
index 3fa1464..0856c67 100644
--- a/data/lib/bugzillaDOMFunctions.js
+++ b/data/lib/bugzillaDOMFunctions.js
@@ -445,15 +445,19 @@ function killNodes(doc, target, remove) {
var elem = {};
// Don't run victimElements.forEach here as we are effectively
// removing its members.
+ myDebug("config = " + config.toSource());
for(var i = 0, ii = victimElements.length; i < ii; i++) {
elem = victimElements[i];
- try {
- elem[1].parentNode.removeChild(elem[1]);
+ if (!config.doNotKill) {
+ try {
+ elem[1].parentNode.removeChild(elem[1]);
+ //elem[1].style.backgroundColor = "red";
+ }
+ catch (e if e instanceof TypeError) {
+ myDebug("victimElements:\n" + victimElements.toSource());
+ console.log("Cannot remove: " + elem[0]);
+ };
}
- catch (e if e instanceof TypeError) {
- myDebug("victimElements:\n" + victimElements.toSource());
- console.log("Cannot remove: " + elem[0]);
- };
};
}
diff --git a/jsons/Config_data.json b/jsons/Config_data.json
index 701b6e9..064d711 100644
--- a/jsons/Config_data.json
+++ b/jsons/Config_data.json
@@ -126,9 +126,9 @@
[
"#field_label_cf_verified",
"#field_container_cf_verified",
- "#bz_show_bug_column_1 tr:nth-child(+8)",
- "#bz_show_bug_column_1 tr:nth-child(+11)",
- "#bz_show_bug_column_1 tr:nth-child(+13)",
+ "#bz_show_bug_column_1 tr:nth-child(+9)",
+ "#bz_show_bug_column_1 tr:nth-child(+12)",
+ "#bz_show_bug_column_1 tr:nth-child(+14)",
"#field_label_cf_last_closed",
"#field_label_cf_pm_score",
"#field_label_cf_build_id",
diff --git a/package.json b/package.json
index a449d3b..6d3c457 100644
--- a/package.json
+++ b/package.json
@@ -7,7 +7,7 @@
"description": "Additional buttons and other function helping in the triage on bugzilla",
"author": "Matej Cepl (http://matej.ceplovi.cz)",
"license": "MIT/X11 (http://opensource.org/licenses/mit-license.php) and MPL",
- "version": "1.6.3",
+ "version": "1.6.4",
"contributors": [
"Ehsan Akhgari (http://ehsanakhgari.org/) <ehsan@mozilla.com>",
"Johnathan Nightingale (http://johnath.com) <johnath@mozilla.com>",
diff --git a/update.rdf b/update.rdf
index 12969c9..0679c55 100644
--- a/update.rdf
+++ b/update.rdf
@@ -307,6 +307,21 @@ xmlns:em="http://www.mozilla.org/2004/em-rdf#">
</em:targetApplication>
</Description>
</li>
+ <li>
+ <Description>
+ <em:version>1.6.4</em:version>
+ <em:targetApplication>
+ <Description>
+ <em:id>
+ {ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
+ <em:minVersion>13.0</em:minVersion>
+ <em:maxVersion>16.0a1</em:maxVersion>
+ <em:updateLink>
+ https://fedorahosted.org/released/bugzilla-triage-scripts/bugzilla-triage-1.6.4.xpi</em:updateLink>
+ </Description>
+ </em:targetApplication>
+ </Description>
+ </li>
</Seq>
</em:updates>
</Description>