mirror of
https://bitbucket.org/s_l_teichmann/mtsatellite
synced 2024-12-24 09:10:17 +01:00
Fixed none vanishing manual update control when switching to auto update.
This commit is contained in:
parent
f71db790e7
commit
7a6d0a0d31
@ -118,12 +118,8 @@ L.control.coordinates({
|
|||||||
var manualUpdateControl;
|
var manualUpdateControl;
|
||||||
if (useWebsocket && 'WebSocket' in window) {
|
if (useWebsocket && 'WebSocket' in window) {
|
||||||
L.autoUpdate('autoUpdate', function(pressed) {
|
L.autoUpdate('autoUpdate', function(pressed) {
|
||||||
if (pressed) {
|
var styleDec = manualUpdateControl.getContainer().style;
|
||||||
manualUpdateControl.getContainer().style = 'visibility: hidden';
|
styleDec.visibility = pressed ? 'hidden' : 'visible';
|
||||||
}
|
|
||||||
else {
|
|
||||||
manualUpdateControl.getContainer().style = 'visibility: visible';
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
players);
|
players);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user