aboutsummaryrefslogtreecommitdiffstats
path: root/data
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2011-05-05 12:02:51 +0200
committerMatěj Cepl <mcepl@redhat.com>2011-05-05 12:02:51 +0200
commit2a8cfd4c1b55125d3211694496cea35cc9603ff9 (patch)
treee6c6da389e2a09b0fa63843d415e3b6a949c8ae2 /data
parent4e16d673820bc63d746a399d7d2ee58e9fbaca85 (diff)
downloadbugzilla-triage-2a8cfd4c1b55125d3211694496cea35cc9603ff9.tar.gz
Make the script more reliable against JSON-hosting sites being down.
Fixes #92
Diffstat (limited to 'data')
-rw-r--r--data/lib/otherButtons.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/data/lib/otherButtons.js b/data/lib/otherButtons.js
index a766668..6bcc043 100644
--- a/data/lib/otherButtons.js
+++ b/data/lib/otherButtons.js
@@ -113,9 +113,9 @@ function addingEmbelishments(list) {
}
// TODO Get compiz bugs as well
- if ((constantData.chipNames) && (list[0])
+ if ((new Boolean(constantData.chipNames)) && (list[0].length > 0)
&& (!FillMagicDoneRE.test(getSummary()))
- && (maintCCAddr === "xgl-maint@redhat.com")) {
+ && (maintCCAddr == "xgl-maint@redhat.com")) {
// Add find chip magic button
var whiteboard_string = document
.getElementById("status_whiteboard").value;
@@ -197,8 +197,8 @@ function setBranding(xLogAtts) {
var compElems;
if (config.suspiciousComponents
&& isInList(getComponent(), config.suspiciousComponents)
- && (compElems = document
- .getElementById("bz_component_edit_container"))) {
+ && ((compElems = document
+ .getElementById("bz_component_edit_container")))) {
compElems.style.background = "red none";
}