aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bzpage.js
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2010-08-05 07:09:15 -0400
committerMatěj Cepl <mcepl@redhat.com>2010-08-05 08:54:13 -0400
commit70c60b518c8017156c452d8ce689c791b17a8b77 (patch)
treead8967da325e7ee4bd0da3986daeb43dbf755c85 /lib/bzpage.js
parent2aabaeb3efb7419f400f639ab75a98a48bf1fd81 (diff)
downloadbugzilla-triage-70c60b518c8017156c452d8ce689c791b17a8b77.tar.gz
Remove elements based on the configuration JSON file (configData.killNodes
object).
Diffstat (limited to 'lib/bzpage.js')
-rw-r--r--lib/bzpage.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/bzpage.js b/lib/bzpage.js
index 5e81a74..07e7ea9 100644
--- a/lib/bzpage.js
+++ b/lib/bzpage.js
@@ -94,6 +94,12 @@ var BZPage = function BZPage(win, config) {
this.setUpLogging();
}
+ if ("killNodes" in config.gJSONData.configData &&
+ this.hostname in config.gJSONData.configData.killNodes) {
+ var killConf = config.gJSONData.configData.killNodes[this.hostname];
+ util.killNodes(this.doc, killConf[0], killConf[1])
+ }
+
this.setConfigurationButton();
this.submitHandlerInstalled = false;
this.bugNo = util.getBugNo(this.doc.location.toString());