Interactive interface for browsing global, full-resolution satellite imagery
WV-764: Palette warnings are now displayed properly for IE9
Mike McGann4dbab4975b88
diff --git a/src/js/palettes/wv.palettes.js b/src/js/palettes/wv.palettes.jsindex af7648eb6..dcc1b4060 100644--- a/src/js/palettes/wv.palettes.js+++ b/src/js/palettes/wv.palettes.js@@ -124,6 +124,14 @@ wv.palettes = (function(self) {self.parse = function(state, errors, config) {if ( state.palettes ) {+ if ( !wv.palettes.supported ) {+ // FIXME: This should go in errors+ delete state.palettes;+ wv.ui.notify("The custom palette feature is not supported " ++ "with your web browser. Upgrade or try again in a " ++ "different browser");+ return;+ }var results = {};var parts = state.palettes.split("~");_.each(parts, function(part) {diff --git a/src/js/palettes/wv.palettes.legend.js b/src/js/palettes/wv.palettes.legend.jsindex 3e1977350..a38fb77ff 100644--- a/src/js/palettes/wv.palettes.legend.js+++ b/src/js/palettes/wv.palettes.legend.js@@ -138,7 +138,12 @@ wv.palettes.legend = wv.palettes.legend || function(spec) {};var showCustomSelector = function(event) {- wv.palettes.custom(config, models, layer);+ if ( wv.palettes.supported ) {+ wv.palettes.custom(config, models, layer);+ } else {+ wv.ui.notify("This feature is not supported with your web " ++ "browser. Upgrade or try again in a different browser");+ }};init();