1
0
mirror of https://bitbucket.org/s_l_teichmann/mtsatellite synced 2025-08-01 23:00:35 +02:00

Fixed none vanishing manual update control when switching to auto update.

This commit is contained in:
Sascha L. Teichmann
2015-03-13 17:06:50 +01:00
parent f71db790e7
commit 7a6d0a0d31

@ -118,12 +118,8 @@ L.control.coordinates({
var manualUpdateControl;
if (useWebsocket && 'WebSocket' in window) {
L.autoUpdate('autoUpdate', function(pressed) {
if (pressed) {
manualUpdateControl.getContainer().style = 'visibility: hidden';
}
else {
manualUpdateControl.getContainer().style = 'visibility: visible';
}
var styleDec = manualUpdateControl.getContainer().style;
styleDec.visibility = pressed ? 'hidden' : 'visible';
},
players);
}