Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Remove 'Events may not be visible at all times' notice when not in events mode

Mike McGann4154cda70667
diff --git a/web/js/natural-events/ui.js b/web/js/natural-events/ui.js
index 2637e3733..f35977fdd 100644
--- a/web/js/natural-events/ui.js
+++ b/web/js/natural-events/ui.js
@@ -103,6 +103,10 @@ export default function naturalEventsUI(models, ui, config, request) {
} else {
model.active = false;
naturalEventMarkers.remove(self.markers);
+ if (eventVisibilityAlert) {
+ eventVisibilityAlert.dialog('close');
+ eventVisibilityAlert = null;
+ }
}
model.events.trigger('change');
});