Skip to content

Commit

Permalink
Invert logic per suggestion from @argilo
Browse files Browse the repository at this point in the history
  • Loading branch information
ke5gdb committed Dec 23, 2024
1 parent f995c6d commit 045ba43
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions auto_rx/autorx/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -311,18 +311,18 @@
});

// Check if user has preffered map visiblity.
if (getCookie('map') == 'true' || getCookie('map') == null) {
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' || getCookie('table') == null) {
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.
Expand Down

0 comments on commit 045ba43

Please sign in to comment.