aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2012-06-16 10:11:45 +0200
committerMatěj Cepl <mcepl@redhat.com>2012-06-16 10:48:38 +0200
commit3dc70b30f31321f2f9c11ce814abd8a170ec2a42 (patch)
treec393f87f8408e3d6883c07cb71348be97e89d338
parent03a01c78c630251416a6e21ad797158d9d16081b (diff)
downloadbugzilla-triage-3dc70b30f31321f2f9c11ce814abd8a170ec2a42.tar.gz
Don't make unavailable target for killNodes into Error.1.6.3
Also fix .json files not remove now missing target.
-rw-r--r--.ditz-config7
-rw-r--r--.ditz-plugins1
-rw-r--r--.ditz/project.yaml8
-rw-r--r--data/lib/bugzillaDOMFunctions.js4
-rw-r--r--data/lib/util.js54
-rw-r--r--jsons/Config_data.json1
-rw-r--r--package.json2
-rw-r--r--update.rdf15
8 files changed, 46 insertions, 46 deletions
diff --git a/.ditz-config b/.ditz-config
deleted file mode 100644
index e80683d..0000000
--- a/.ditz-config
+++ /dev/null
@@ -1,7 +0,0 @@
---- !ditz.rubyforge.org,2008-03-06/config
-name: Matej Cepl
-email: mcepl@redhat.com
-issue_dir: .ditz
-trac_sync_url: https://fedorahosted.org/bugzilla-triage-scripts/
-trac_sync_user: mcepl
-trac_sync_pass: $Rkh&f3swtIj
diff --git a/.ditz-plugins b/.ditz-plugins
deleted file mode 100644
index ecaad4e..0000000
--- a/.ditz-plugins
+++ /dev/null
@@ -1 +0,0 @@
-- trac-sync
diff --git a/.ditz/project.yaml b/.ditz/project.yaml
deleted file mode 100644
index dfc2d0d..0000000
--- a/.ditz/project.yaml
+++ /dev/null
@@ -1,8 +0,0 @@
---- !ditz.rubyforge.org,2008-03-06/project
-name: bugzilla-triage
-version: "0.5"
-components:
-- !ditz.rubyforge.org,2008-03-06/component
- name: bugzilla-triage
-releases: []
-
diff --git a/data/lib/bugzillaDOMFunctions.js b/data/lib/bugzillaDOMFunctions.js
index ae4b01d..3fa1464 100644
--- a/data/lib/bugzillaDOMFunctions.js
+++ b/data/lib/bugzillaDOMFunctions.js
@@ -426,6 +426,7 @@ function getCCList () {
*/
function killNodes(doc, target, remove) {
var victimElements = [];
+ myDebug("target:\n" + target.toSource());
if (target.forEach) {
target.forEach(function(x) {
@@ -450,7 +451,8 @@ function killNodes(doc, target, remove) {
elem[1].parentNode.removeChild(elem[1]);
}
catch (e if e instanceof TypeError) {
- console.error("Cannot remove: " + elem[0]);
+ myDebug("victimElements:\n" + victimElements.toSource());
+ console.log("Cannot remove: " + elem[0]);
};
};
}
diff --git a/data/lib/util.js b/data/lib/util.js
index 5b2372e..8db19f5 100644
--- a/data/lib/util.js
+++ b/data/lib/util.js
@@ -336,32 +336,32 @@ function filterByRegexp(list, chosingMark) {
}
}
-/**
- * remove elements from the page based on their IDs
- *
- * @param doc
- * Document object
- * @param target
- * String/Array with ID(s)
- * @param remove
- * Boolean indicating whether the node should be actually removed or
- * just hidden.
- * @return none TODO remove parameter could be replaced by function which would
- * do actual activity.
- */
-function killNodes(doc, target, remove) {
- target = target.trim();
- var targetArr = target instanceof Array ? target : target.split(/[,\s]+/);
- targetArr.forEach(function(x) {
- if (remove) {
- var targetNode = doc.getElementById(x);
- targetNode.parentNode.removeChild(targetNode);
- }
- else {
- x.style.display = "none";
- }
- });
-}
+// /**
+// * remove elements from the page based on their IDs
+// *
+// * @param doc
+// * Document object
+// * @param target
+// * String/Array with ID(s)
+// * @param remove
+// * Boolean indicating whether the node should be actually removed or
+// * just hidden.
+// * @return none TODO remove parameter could be replaced by function which would
+// * do actual activity.
+// */
+// function killNodes(doc, target, remove) {
+// target = target.trim();
+// var targetArr = target instanceof Array ? target : target.split(/[,\s]+/);
+// targetArr.forEach(function(x) {
+// if (remove) {
+// var targetNode = doc.getElementById(x);
+// targetNode.parentNode.removeChild(targetNode);
+// }
+// else {
+// x.style.display = "none";
+// }
+// });
+// }
/**
* Remove duplicate elements from array
@@ -406,4 +406,4 @@ function myDebug(str) {
console.log(str);
}
}
-} \ No newline at end of file
+}
diff --git a/jsons/Config_data.json b/jsons/Config_data.json
index 740e1b4..701b6e9 100644
--- a/jsons/Config_data.json
+++ b/jsons/Config_data.json
@@ -126,7 +126,6 @@
[
"#field_label_cf_verified",
"#field_container_cf_verified",
- "#field_label_cf_environment",
"#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)",
diff --git a/package.json b/package.json
index a07ccf0..a449d3b 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.2",
+ "version": "1.6.3",
"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 ff00a10..12969c9 100644
--- a/update.rdf
+++ b/update.rdf
@@ -292,6 +292,21 @@ xmlns:em="http://www.mozilla.org/2004/em-rdf#">
</em:targetApplication>
</Description>
</li>
+ <li>
+ <Description>
+ <em:version>1.6.3</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.3.xpi</em:updateLink>
+ </Description>
+ </em:targetApplication>
+ </Description>
+ </li>
</Seq>
</em:updates>
</Description>