Skip to content

Commit 4710360

Browse files
authored
show notes even if no times
1 parent 9e993c7 commit 4710360

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

js/tracker.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -935,6 +935,9 @@ function showLaunchSites() {
935935
popupContent += "<br><b>Know when this site launches?</b> Contribute <a href='https://github.com/projecthorus/sondehub-tracker/issues/114' target='_blank'>here</a>";
936936
popupContent += "<br><button onclick='launchSitePredictions(\"" + json[key]['times'].toString() + "\", \"" + latlon.toString() + "\", \"" + ascent_rate + ":" + descent_rate + ":" + burst_altitude + ":" + burst_samples + ":" + descent_samples + "\", \"" + launches.getLayerId(marker) + "\")' style='margin-bottom:0;'>Generate Predictions</button>";
937937
} else {
938+
if (json[key].hasOwnProperty('notes')) {
939+
popupContent += "<br><b>Notes:</b> " + json[key]["notes"];
940+
}
938941
popupContent = "<font style='font-size: 13px'>" + json[key].station_name + "</font><br><br><b>Sondes launched:</b> " + sondesList;
939942
popupContent += "<br><b>Know when this site launches?</b> Contribute <a href='https://github.com/projecthorus/sondehub-tracker/issues/114' target='_blank'>here</a>";
940943
}

0 commit comments

Comments
 (0)