WebUI: Fix initial state of the alternative speed limits icon

This commit is contained in:
Gabriele 2014-12-19 17:24:20 +01:00
parent f43d8f1139
commit 280aa95ef6

View file

@ -297,7 +297,7 @@ window.addEvent('load', function () {
new Request({url: 'command/alternativeSpeedLimitsEnabled',
method: 'get',
onSuccess : function (isEnabled) {
alternativeSpeedsLimit = !!isEnabled;
alternativeSpeedsLimit = !!parseInt(isEnabled);
if (alternativeSpeedsLimit)
$('alternativeSpeedLimits').src = "images/slow.png"
}