Interactive interface for browsing global, full-resolution satellite imagery
fix alert icon #1375
Benjamin Kingc08103e7230f
diff --git a/web/js/natural-events/ui.js b/web/js/natural-events/ui.jsindex b5e448cdf..0f69f699f 100644--- a/web/js/natural-events/ui.js+++ b/web/js/natural-events/ui.js@@ -232,7 +232,8 @@ export default function naturalEventsUI(models, ui, config, request) {eventVisibilityAlertBody,'Events may not be visible at all times.',800,- 'warning',+ 'exclamation-triangle',+ 'fas',function() {if (util.browser.localStorage) {localStorage.setItem('dismissedEventVisibilityAlert', true);diff --git a/web/js/ui/ui.js b/web/js/ui/ui.jsindex a2da22631..6d94d774c 100644--- a/web/js/ui/ui.js+++ b/web/js/ui/ui.js@@ -24,7 +24,7 @@ export default (function(self) {self.notify("<div class='error-header'>" +- "<i class='error-icon fa fa-exclamation-triangle fa-3x'></i>" ++ "<i class='error-icon fas fa-exclamation-triangle fa-3x'></i>" +'An unexpected error has occurred' +'</div>' +"<div class='error-body'>Please reload the page and try " +@@ -75,9 +75,13 @@ export default (function(self) {});};- self.alert = function(body, title, size, glyph, closeFn) {+ self.alert = function(body, title, size, glyph, glyphType, closeFn) {var $message = $('<span/>', { class: 'notify-message' });- var $icon = $('<i/>', { class: 'fa fa-' + glyph + ' fa-1x', title: title });+ glyphType = glyphType || 'fa';+ var $icon = $('<i/>', {+ class: glyphType + ' fa-' + glyph + ' fa-1x',+ title: title+ });var $messageWrapper = $('<div/>').click(function() {self.notify(body, title, size);