diff --git a/static/js/alerts.js b/static/js/alerts.js index 00a6ca7..42d6639 100644 --- a/static/js/alerts.js +++ b/static/js/alerts.js @@ -268,8 +268,8 @@ function addAlertRowsToTable(tbody, alerts) { } // If this is a satellite alert the ref will just be the satellite, but DX grid is also important, so // show that if we can. - if (a["sig_refs"][i]["sig"] === "Satellite" && a["dx_grid"]) { - items[i] += " from " + a["sig_refs"][i]["dx_grid"]; + if (a["sig_refs"][i]["sig"] === "Satellite" && a["dx_grid"] != null) { + items[i] += " from " + a["dx_grid"]; } } activityRefs = items.join(", "); diff --git a/templates/add-spot.html b/templates/add-spot.html index 26f4140..61023d4 100644 --- a/templates/add-spot.html +++ b/templates/add-spot.html @@ -77,7 +77,7 @@ - + diff --git a/templates/alerts.html b/templates/alerts.html index fb92161..ad827d8 100644 --- a/templates/alerts.html +++ b/templates/alerts.html @@ -85,7 +85,7 @@ - + diff --git a/templates/bands.html b/templates/bands.html index 03096a2..2da484b 100644 --- a/templates/bands.html +++ b/templates/bands.html @@ -76,8 +76,8 @@ - - + + diff --git a/templates/base.html b/templates/base.html index d7f2da5..2d8df90 100644 --- a/templates/base.html +++ b/templates/base.html @@ -1,6 +1,6 @@ {% extends "skeleton.html" %} {% block head_extra %} - + @@ -16,10 +16,10 @@ window.fetchEventSource = fetchEventSource; - - - - + + + + {% end %} {% block body %}
diff --git a/templates/conditions.html b/templates/conditions.html index 36cc8da..de9d114 100644 --- a/templates/conditions.html +++ b/templates/conditions.html @@ -284,7 +284,7 @@
- + diff --git a/templates/map.html b/templates/map.html index cf19a1b..d9218ff 100644 --- a/templates/map.html +++ b/templates/map.html @@ -113,8 +113,8 @@ const CARTODB_API_KEY = "{{ web_ui_options.get('cartodb_api_key', '') }}"; - - + + diff --git a/templates/spots.html b/templates/spots.html index 5281112..5ad3ffe 100644 --- a/templates/spots.html +++ b/templates/spots.html @@ -125,8 +125,8 @@ - - + + diff --git a/templates/status.html b/templates/status.html index 1c0f9f7..db23478 100644 --- a/templates/status.html +++ b/templates/status.html @@ -96,7 +96,7 @@ - +