Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

fixed events state #156

Benjamin9a6c83aada47
diff --git a/web/js/naturalEvents/wv.naturalEvents.ui.js b/web/js/naturalEvents/wv.naturalEvents.ui.js
index c4ad65b94..ce7a990a7 100644
--- a/web/js/naturalEvents/wv.naturalEvents.ui.js
+++ b/web/js/naturalEvents/wv.naturalEvents.ui.js
@@ -38,14 +38,14 @@ wv.naturalEvents.ui = wv.naturalEvents.ui || function(models, ui, config, reques
request.events.on( "queryResults", onQueryResults );
ui.sidebar.events.on("select", function(tab) {
if ( tab === "events" ) {
- request.active = true;
+ model.active = true;
resize();
if (mapController.current) {
mapController.draw(mapController.current);
}
}
else {
- request.active = false;
+ model.active = false;
mapController.dispose();
$notification.dialog('close');
}