From 994d640f8b62ab7341d4c6749ed9bc2fde9f4eb0 Mon Sep 17 00:00:00 2001 From: yflory Date: Tue, 21 Mar 2017 14:52:49 +0100 Subject: [PATCH] Fix an issue causing the lag icon to lose its color --- www/common/toolbar.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/www/common/toolbar.js b/www/common/toolbar.js index c12ac1a4f..4c7efa72c 100644 --- a/www/common/toolbar.js +++ b/www/common/toolbar.js @@ -360,8 +360,8 @@ define([ }); var title; var $lag = $(lagElement); - $lag.attr('class', ''); if (lag) { + $lag.attr('class', ''); firstConnection = false; title = Messages.lag + ' : ' + lag + ' ms\n'; if (lag > 30000) { @@ -382,6 +382,7 @@ define([ } } else if (!firstConnection) { + $lag.attr('class', ''); // Display the red light at the 2nd failed attemp to get the lag lagLight.addClass('lag-red'); title = Messages.redLight;