fixed markup of flash messages
This commit is contained in:
@ -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(' ') + '"> ';
|
||||
}
|
||||
html += options.text;
|
||||
var html = (options.icon ? '<i class="' + options.icon.join(' ') + '"></i>' : '') + options.text;
|
||||
container.html(html);
|
||||
showFlashes();
|
||||
}
|
||||
|
Reference in New Issue
Block a user