Interactive interface for browsing global, full-resolution satellite imagery
WV-760: Layers not available for download are now at the bottom in IE9
Mike McGannd712e1c00c61
diff --git a/src/js/data/wv.data.model.js b/src/js/data/wv.data.model.jsindex 7572149d4..4057182db 100644--- a/src/js/data/wv.data.model.js+++ b/src/js/data/wv.data.model.js@@ -184,14 +184,19 @@ wv.data.model = wv.data.model || function(models, config) {});});- // Add not available to the end if it exists by removing it and- // re-adding- if ( products.__NO_PRODUCT ) {- var x = products.__NO_PRODUCT;- delete products.__NO_PRODUCT;- products.__NO_PRODUCT = x;+ // FIXME: This is a hack to force the not availables to the bottom+ // especially for IE9. This whole function needs clean up.+ var results = {};+ var none = products.__NO_PRODUCT;+ _.each(products, function(product, key) {+ if ( key !== NO_PRODUCT_ID ) {+ results[key] = product;+ }+ });+ if ( none ) {+ results[NO_PRODUCT_ID] = none;}- return products;+ return results;};self.getProductsString = function() {