From 5bb4f192c01449cd1826ec7f5cf56a7623049866 Mon Sep 17 00:00:00 2001 From: Hauke Klement Date: Fri, 27 Mar 2015 09:33:00 +0100 Subject: [PATCH] fixed markup of flash messages --- lib/assets/javascripts/flash.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/assets/javascripts/flash.js b/lib/assets/javascripts/flash.js index 412e74e1..cd5cb72d 100644 --- a/lib/assets/javascripts/flash.js +++ b/lib/assets/javascripts/flash.js @@ -5,11 +5,7 @@ var buildFlash = function(options) { if (options.text) { var container = options.container; - var html = ''; - if (options.icon) { - html += ' '; - } - html += options.text; + var html = (options.icon ? '' : '') + options.text; container.html(html); showFlashes(); }