Browse Source

WebUI: Fix initial state of the alternative speed limits icon

adaptive-webui-19844
Gabriele 10 years ago
parent
commit
280aa95ef6
  1. 2
      src/webui/www/public/scripts/client.js

2
src/webui/www/public/scripts/client.js

@ -297,7 +297,7 @@ window.addEvent('load', function () { @@ -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"
}

Loading…
Cancel
Save