Skip to content

Node.js based forum software built for the modern web

fixes translation bug with app.alert

psychobunny3c863feac29c
diff --git a/public/src/app.js b/public/src/app.js
index 50f181a99e..725e31ca7e 100644
--- a/public/src/app.js
+++ b/public/src/app.js
@@ -186,6 +186,12 @@ var socket,
clearTimeout(alert.attr('timeoutId'));
startTimeout(alert, params.timeout);
+
+ alert.children().fadeOut('100');
+ translator.translate(alert.html(), function(translatedHTML) {
+ alert.children().fadeIn('100');
+ alert.html(translatedHTML);
+ });
} else {
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">&times;</button>'),