fixed markup of flash messages

This commit is contained in:
Hauke Klement
2015-03-27 09:33:00 +01:00
parent 3dd27ef915
commit 5bb4f192c0

View File

@ -5,11 +5,7 @@
var buildFlash = function(options) {
if (options.text) {
var container = options.container;
var html = '';
if (options.icon) {
html += '<i class="' + options.icon.join(' ') + '">&nbsp;';
}
html += options.text;
var html = (options.icon ? '<i class="' + options.icon.join(' ') + '"></i>' : '') + options.text;
container.html(html);
showFlashes();
}