kopia lustrzana https://github.com/projecthorus/radiosonde_auto_rx
Invert logic per suggestion from @argilo
rodzic
f995c6d415
commit
045ba43d52
|
|
@ -311,18 +311,18 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
// Check if user has preffered map visiblity.
|
// Check if user has preffered map visiblity.
|
||||||
if (getCookie('map') == 'true' || getCookie('map') == null) {
|
if (getCookie('map') == 'false') {
|
||||||
document.getElementById("mapid_details").setAttribute("open", true) ;
|
|
||||||
} else {
|
|
||||||
document.getElementById("mapid_details").removeAttribute("open") ;
|
document.getElementById("mapid_details").removeAttribute("open") ;
|
||||||
document.getElementById("mapid").style.display = "none";
|
document.getElementById("mapid").style.display = "none";
|
||||||
|
} else {
|
||||||
|
document.getElementById("mapid_details").setAttribute("open", true) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check if user has preffered table visiblity.
|
// Check if user has preffered table visiblity.
|
||||||
if (getCookie('table') == 'true' || getCookie('table') == null) {
|
if (getCookie('table') == 'false') {
|
||||||
document.getElementById("tableid").setAttribute("open", true) ;
|
|
||||||
} else {
|
|
||||||
document.getElementById("tableid").removeAttribute("open") ;
|
document.getElementById("tableid").removeAttribute("open") ;
|
||||||
|
} else {
|
||||||
|
document.getElementById("tableid").setAttribute("open", true) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check if user has preffered follow latest sonde selection.
|
// Check if user has preffered follow latest sonde selection.
|
||||||
|
|
|
||||||
Ładowanie…
Reference in New Issue