kopia lustrzana https://github.com/projecthorus/radiosonde_auto_rx
Merge pull request #963 from ke5gdb/testing
Change default map/table collapsable behavior to open if no cookie existspull/964/head
commit
8dfaef2c0c
|
@ -311,18 +311,18 @@
|
|||
});
|
||||
|
||||
// Check if user has preffered map visiblity.
|
||||
if (getCookie('map') == 'true') {
|
||||
document.getElementById("mapid_details").setAttribute("open", true) ;
|
||||
} else {
|
||||
if (getCookie('map') == 'false') {
|
||||
document.getElementById("mapid_details").removeAttribute("open") ;
|
||||
document.getElementById("mapid").style.display = "none";
|
||||
} else {
|
||||
document.getElementById("mapid_details").setAttribute("open", true) ;
|
||||
}
|
||||
|
||||
// Check if user has preffered table visiblity.
|
||||
if (getCookie('table') == 'true') {
|
||||
document.getElementById("tableid").setAttribute("open", true) ;
|
||||
} else {
|
||||
if (getCookie('table') == 'false') {
|
||||
document.getElementById("tableid").removeAttribute("open") ;
|
||||
} else {
|
||||
document.getElementById("tableid").setAttribute("open", true) ;
|
||||
}
|
||||
|
||||
// Check if user has preffered follow latest sonde selection.
|
||||
|
|
Ładowanie…
Reference in New Issue