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