Interactive interface for browsing global, full-resolution satellite imagery
Toolbar buttons disable when image download active
Mike McGann01ca2445b6c0
diff --git a/src/css/wv.main.css b/src/css/wv.main.cssindex a587fd4f5..040febff4 100644--- a/src/css/wv.main.css+++ b/src/css/wv.main.css@@ -119,7 +119,7 @@ div.horizontalContainer {width:100%; display:block; float:left; position:absolu#wvlogo { width:54px; background-position: 0 center;}}-.toolbar-icon {+#toolbarlist {}#wv-logo {@@ -136,16 +136,16 @@ div.horizontalContainer {width:100%; display:block; float:left; position:absolucolor: #eeeeee;}-.ui-button:hover:enabled {- background: #eeeeee;- color: #404040;-}--.ui-button:active:enabled {+.ui-state-active {border: 1px solid #808080;background: #808080;}+.ui-state-hover {+ background: #eeeeee;+ color: #404040;+}+.ui-menu { position: absolute; width: 100px; z-index: 1000; }/* Allow Font Awesome Icons in lieu of jQuery UI and only apply when using a FA icon */@@ -179,9 +179,7 @@ div.horizontalContainer {width:100%; display:block; float:left; position:absolupadding-bottom: 15px;}-.ui-state-active {- background: #00457b;-}+.ui-tooltip {background: #FFFBE7;@@ -226,4 +224,3 @@ a:hover {.ui-state-focus:focus { outline: none !important }.ui-state-focus a:focus { outline: none !important }-diff --git a/src/js/image/wv.image.rubberband.js b/src/js/image/wv.image.rubberband.jsindex 11f3cdde4..9e854277c 100644--- a/src/js/image/wv.image.rubberband.js+++ b/src/js/image/wv.image.rubberband.js@@ -66,12 +66,18 @@ wv.image.rubberband = wv.image.rubberband || function(models, config) {$button.on('click', toggle);};+ var toolbarButtons = function(action) {+ $("#wv-info-button .ui-button").button(action);+ $("#wv-proj-button .ui-button").button(action);+ $("#wv-link-button .ui-button").button(action);+ };+var toggle = function(){var checked = $("#wv-image-button-check").prop("checked");var toggleOn = function() {state = "on";- //$("#"+id+"camera_link img").attr("src",onicon);+ toolbarButtons("disable");$("#imagedownload").show('slide', {direction: 'up'}, 1000);draw();};@@ -120,6 +126,7 @@ wv.image.rubberband = wv.image.rubberband || function(models, config) {models.palettes.add(layerId, paletteId);});}+ toolbarButtons("enable");}};