Interactive interface for browsing global, full-resolution satellite imagery
WV-548 Added click area for more info on unavailable layers
Taylor Gunnoeb5cbb0538271
diff --git a/src/css/dataDownload.css b/src/css/dataDownload.cssindex 5e27d59aa..cb2dc2e03 100644--- a/src/css/dataDownload.css+++ b/src/css/dataDownload.css@@ -128,3 +128,14 @@#DataDownload_GranuleList tr:nth-child(even) {background-color: rgb(45, 48, 52);}+#DataDownload #DataDownloadcontent h3 span{+ font-weight:bold;+ color:#00457b;+ cursor:pointer;+ font-size:130%;++}+#DataDownload #DataDownloadcontent h3 span:hover{+ color:#000;+ background-color:#ccc;+}diff --git a/src/js/Worldview/DataDownload/DownloadListPanel.js b/src/js/Worldview/DataDownload/DownloadListPanel.jsindex 05622331b..0cffd9c40 100644--- a/src/js/Worldview/DataDownload/DownloadListPanel.js+++ b/src/js/Worldview/DataDownload/DownloadListPanel.js@@ -253,4 +253,6 @@ Worldview.DataDownload.DownloadListPanel = function(config, model) {return self;};-+$('#DataDownload #DataDownloadcontent h3 span').click(function(e){+ console.log("TEST####");+ });diff --git a/src/js/Worldview/DataDownload/Model.js b/src/js/Worldview/DataDownload/Model.jsindex 523f511cc..7a8b1f347 100644--- a/src/js/Worldview/DataDownload/Model.js+++ b/src/js/Worldview/DataDownload/Model.js@@ -25,7 +25,7 @@ Worldview.DataDownload.Model = function(config) {var NO_PRODUCT_ID = "__NO_PRODUCT";var NO_PRODUCT = {- name: "Not available for download",+ name: "Not available for download <span>?</span>",notSelectable: true};diff --git a/src/js/list.js b/src/js/list.jsindex 6b0b4a021..a453fa162 100644--- a/src/js/list.js+++ b/src/js/list.js@@ -311,9 +311,27 @@ SOTE.widget.List.prototype._update = function(){}$category.append($item);}- }+ }+}-+ $('#DataDownload #DataDownloadcontent h3 span').click(function(e){+ var o;+ bodyMsg = 'Some layers in Worldview do not have corresponding source data products available for download. The MODIS "Corrected Reflectance" products are prime examples of this. If you wish to download similar-looking products, please use the MODIS "Land Surface Reflectance" ones available in Worldview. If you wish to generate MODIS Corrected Reflectance images yourself, please see the following document: <a href="https://earthdata.nasa.gov/sites/default/files/field/document/MODIS_True_Color.pdf" target="_blank">https://earthdata.nasa.gov/sites/default/files/field/document/MODIS_True_Color.pdf</a>';+ o = new YAHOO.widget.Panel("WVerror", {+ width: "600px",+ zIndex: 1020,+ visible: false+ });+ title = title || "Notice";+ o.setHeader('<b>Why are these layers not available for downloading?</b>');+ o.setBody(bodyMsg);+ o.render(document.body);+ o.show();+ o.center();+ o.hideEvent.subscribe(function(i) {+ setTimeout(function() {o.destroy();}, 25);+ });+ });// Append the category (heading + items) to the content div$content.append($category);