Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

fixes event class names #156

Benjamin5cb7fdd58b5b
diff --git a/web/js/naturalEvents/wv.naturalEvents.model.js b/web/js/naturalEvents/wv.naturalEvents.model.js
index 285995e3d..c4d79047e 100644
--- a/web/js/naturalEvents/wv.naturalEvents.model.js
+++ b/web/js/naturalEvents/wv.naturalEvents.model.js
@@ -66,7 +66,7 @@ wv.naturalEvents.model = wv.naturalEvents.model || function(models, config) {
// make a usuable css class from category name
event.categories[0].css = event.categories[0].title
.toLowerCase()
- .replace(' ', '-');
+ .split(' ').join('-');
pruned.push( event );
}
});