Interactive interface for browsing global, full-resolution satellite imagery
WV-176: setValue was using the wrong selector and setting a src attribute on a div instead of changing the css. I was unable to reproduce the error with the product picker.
Mike McGann7acb1ba3bfef
diff --git a/js/Worldview/Widget/Palette.js b/js/Worldview/Widget/Palette.jsindex d67291ad3..29a45e93c 100644--- a/js/Worldview/Widget/Palette.js+++ b/js/Worldview/Widget/Palette.js@@ -25,7 +25,7 @@ Worldview.Widget.Palette = function(containerId, config, spec) {self.alignTo = spec.alignTo;var init = function() {- Logging.debug("Worldview.Widget.Palette");+ //Logging.debug("Worldview.Widget.Palette");if ( REGISTRY ) {REGISTRY.register(containerId, self);} else {diff --git a/js/switch.js b/js/switch.jsindex e32c0c2b7..e5e41cd68 100644--- a/js/switch.js+++ b/js/switch.js@@ -20,6 +20,7 @@ SOTE.widget.Switch.prototype = new SOTE.widget.Component;*/SOTE.widget.Switch = function(containerId, config){this.log = Logging.getLogger("Worldview.Widget.Switch");+ Logging.debug("Worldview.Widget.Switch");this.VALID_PROJECTIONS = ["geographic", "arctic", "antarctic"];//Get the ID of the container element@@ -138,6 +139,8 @@ SOTE.widget.Switch.prototype.fire = function(){*/SOTE.widget.Switch.prototype.setValue = function(valString){+ this.log.debug("Switch: setValue", valString);+// Check to see if the projection is valid. If not, default to the first// projectiond defined.if ( valString === "" ) {@@ -149,7 +152,7 @@ SOTE.widget.Switch.prototype.setValue = function(valString){} else {this.value = valString;}- $("#" + this.id+"current").attr("src","images/"+this.value+".png");+ $(".sw_current").css("background-image","url(images/"+this.value+".png)");this.validate();this.fire();