Interactive interface for browsing global, full-resolution satellite imagery
removed loader when notification is shown
Benjamin31463c7f728b
diff --git a/web/js/animation/wv.anim.gif.js b/web/js/animation/wv.anim.gif.jsindex a40fd6e49..9fc305bf6 100644--- a/web/js/animation/wv.anim.gif.js+++ b/web/js/animation/wv.anim.gif.js@@ -24,6 +24,7 @@ wv.anim.gif = wv.anim.gif || function(models, config, ui) {var previousCoords = null;var animModel = models.anim;var $progress;// progress bar+ var loader;var progressing = false; //if progress bar has startedvar GRATICLE_WARNING ="The graticule layer cannot be used to take a snapshot. Would you " +@@ -67,7 +68,6 @@ wv.anim.gif = wv.anim.gif || function(models, config, ui) {var endDate = stateObj.endDate;var shootGIFafterImageLoad;var imageArra;- var loader;loader = wv.ui.indicator.loading();var buildProgressBar = function() {@@ -273,6 +273,8 @@ wv.anim.gif = wv.anim.gif || function(models, config, ui) {current = wv.util.dateAdd(current, ui.anim.ui.getInterval(), 1);if(j > 40) { // too many frameshowUnavailableReason();+ wv.ui.indicator.hide(loader);+return false;}@@ -299,8 +301,10 @@ wv.anim.gif = wv.anim.gif || function(models, config, ui) {var showUnavailableReason = function() {var headerMsg = "<h3 class='wv-data-unavailable-header'>GIF Not Available</h3>";var bodyMsg = 'Too many frames were selected. Please request less than 40 frames if you would like to generate a GIF';-- wv.ui.notify(headerMsg + bodyMsg, "Notice", 600);+ callback = function() {+ $('#timeline-footer').toggleClass('wv-anim-active');+ };+ wv.ui.notify(headerMsg + bodyMsg, "Notice", 600, callback);};/*diff --git a/web/js/ui/wv.ui.js b/web/js/ui/wv.ui.jsindex 73f42a6e3..4f18c4c05 100644--- a/web/js/ui/wv.ui.js+++ b/web/js/ui/wv.ui.js@@ -59,7 +59,7 @@ wv.ui = (function(self) {** @param [title="Notice"] {string} Title for the dialog box.*/- self.notify = function(message, title, width) {+ self.notify = function(message, title, width, callback) {var $dialog = self.getDialog();title = title || "Notice";width = width || 300;@@ -70,7 +70,11 @@ wv.ui = (function(self) {width: width,minHeight: 1,height: "auto"+ }).on("dialogclose", function() {+ callback();});++};/**