aboutsummaryrefslogtreecommitdiffstats
path: root/data/lib/bzpage.js
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2011-03-21 00:32:05 +0100
committerMatěj Cepl <mcepl@redhat.com>2011-06-05 14:44:00 +0200
commit39e8a732fed33c134a301fad446b13223c4b3fc3 (patch)
tree7697541b536c016cf953a25530273dc68d222df3 /data/lib/bzpage.js
parent75815608b97febce430a5f85b7eb7ce737470a12 (diff)
downloadbugzilla-triage-39e8a732fed33c134a301fad446b13223c4b3fc3.tar.gz
CLeaned queries.js so that it is independent of external forces.
Diffstat (limited to 'data/lib/bzpage.js')
-rw-r--r--data/lib/bzpage.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/data/lib/bzpage.js b/data/lib/bzpage.js
index d3250ba..87030e4 100644
--- a/data/lib/bzpage.js
+++ b/data/lib/bzpage.js
@@ -16,7 +16,8 @@ var ReporterColor = new Color(255, 255, 166); // RGB 255, 255, 166; HSL 60, 2,
// global variables
var config = {};
var constantData = {}; // This should be probably eliminated ASAP or
- // or done by other means. TODO
+ // or done by other means. TODO
+var equivalentComponents = null;
/**
* central handler processing messages from the main script.
*/
@@ -27,11 +28,13 @@ onMessage = function onMessage(msg) {
document.location.reload(true);
break;
case "queryLocal":
- queryInNewTab(msg.data, getComponent(), getProduct());
+ queryInNewTab(msg.data, getComponent(), getProduct(), equivalentComponents);
break;
case "CreateButtons":
constantData = msg.data.constData;
config = msg.data.config;
+ equivalentComponents = ("equivalentComponents" in constantData) ?
+ constantData.equivalentComponents : null;
generateButtons(msg.data.instPkgs, msg.data.kNodes);
break;
case "Error":