mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-10 16:05:49 +01:00
fixes translation bug with app.alert
This commit is contained in:
@@ -186,6 +186,12 @@ var socket,
|
|||||||
|
|
||||||
clearTimeout(alert.attr('timeoutId'));
|
clearTimeout(alert.attr('timeoutId'));
|
||||||
startTimeout(alert, params.timeout);
|
startTimeout(alert, params.timeout);
|
||||||
|
|
||||||
|
alert.children().fadeOut('100');
|
||||||
|
translator.translate(alert.html(), function(translatedHTML) {
|
||||||
|
alert.children().fadeIn('100');
|
||||||
|
alert.html(translatedHTML);
|
||||||
|
});
|
||||||
} else {
|
} else {
|
||||||
var div = $('<div id="' + alert_id + '" class="alert alert-dismissable alert-' + params.type +'"></div>'),
|
var div = $('<div id="' + alert_id + '" class="alert alert-dismissable alert-' + params.type +'"></div>'),
|
||||||
button = $('<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>'),
|
button = $('<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>'),
|
||||||
|
|||||||
Reference in New Issue
Block a user