From 3c863feac29c73e6244367e6dda69b94efa43afb Mon Sep 17 00:00:00 2001 From: psychobunny Date: Thu, 6 Feb 2014 17:21:53 -0500 Subject: [PATCH] fixes translation bug with app.alert --- public/src/app.js | 6 ++++++ 1 file changed, 6 insertions(+) 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 = $('
'), button = $(''),