mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-10 16:05:49 +01:00
fixes alert close
This commit is contained in:
@@ -177,13 +177,13 @@ var socket,
|
|||||||
if (alert.length > 0) {
|
if (alert.length > 0) {
|
||||||
alert.find('strong').html(title);
|
alert.find('strong').html(title);
|
||||||
alert.find('p').html(params.message);
|
alert.find('p').html(params.message);
|
||||||
alert.attr('class', "alert toaster-alert " + "alert-" + params.type);
|
alert.attr('class', "alert alert-dismissable alert-" + params.type);
|
||||||
|
|
||||||
clearTimeout(alert.attr('timeoutId'));
|
clearTimeout(alert.attr('timeoutId'));
|
||||||
startTimeout(alert, params.timeout);
|
startTimeout(alert, params.timeout);
|
||||||
} else {
|
} else {
|
||||||
var div = $('<div id="' + alert_id + '" class="alert toaster-alert alert-' + params.type +'"></div>'),
|
var div = $('<div id="' + alert_id + '" class="alert alert-dismissable alert-' + params.type +'"></div>'),
|
||||||
button = $('<button class="close">×</button>'),
|
button = $('<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>'),
|
||||||
strong = $('<strong>' + title + '</strong>'),
|
strong = $('<strong>' + title + '</strong>'),
|
||||||
p = $('<p>' + params.message + '</p>');
|
p = $('<p>' + params.message + '</p>');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user