Interactive interface for browsing global, full-resolution satellite imagery
WV-1241: Selection list now disappears if there is no data
Mike McGann3c11bfa7d106
diff --git a/web/js/data/wv.data.ui.js b/web/js/data/wv.data.ui.jsindex 1cb6c51d5..537bbf193 100644--- a/web/js/data/wv.data.ui.js+++ b/web/js/data/wv.data.ui.js@@ -264,19 +264,20 @@ wv.data.ui = wv.data.ui || function(models, ui, config) {queryActive = false;lastResults = results;wv.ui.indicator.hide(indicators);+ var hasResults = true;if ( model.selectedProduct !== null && results.granules.length === 0 ) {indicators.noData = wv.ui.indicator.noData(indicators);+ hasResults = false;+ }+ if ( results.meta.showList && hasResults ) {+ selectionListPanel =+ wv.data.ui.selectionListPanel(model, results);+ selectionListPanel.show();} else {- if ( results.meta.showList ) {- selectionListPanel =- wv.data.ui.selectionListPanel(model, results);- selectionListPanel.show();- } else {- if ( selectionListPanel ) {- selectionListPanel.hide();- }- selectionListPanel = null;+ if ( selectionListPanel ) {+ selectionListPanel.hide();}+ selectionListPanel = null;}updateSelection();};