UI - Preview single snapshot - Date and button fixes (#2389)

This commit is contained in:
dgtlmoon
2024-05-27 12:51:01 +02:00
committed by GitHub
parent 778680d517
commit be91c5425c
3 changed files with 7 additions and 3 deletions

View File

@@ -40,9 +40,13 @@ if (selectElement) {
if (selectedOption) {
if (selectedOption.previousElementSibling) {
document.getElementById('btn-previous').href = "?version=" + selectedOption.previousElementSibling.value;
} else {
document.getElementById('btn-previous').remove()
}
if (selectedOption.nextElementSibling) {
document.getElementById('btn-next').href = "?version=" + selectedOption.nextElementSibling.value;
} else {
document.getElementById('btn-next').remove()
}
}