Don't hide thumbnails view

pull/7/head
Toni Melisma 3 years ago
parent 3d3bef3b39
commit 8723ae774a
No known key found for this signature in database
GPG Key ID: FFF9A7EDDEA34756

@ -42,9 +42,9 @@ for (let box of boxes) {
const displayModal = (display) => { const displayModal = (display) => {
if (display) { if (display) {
document.getElementById("modal").hidden = false document.getElementById("modal").hidden = false
document.getElementById("thumbnails").hidden = true // document.getElementById("thumbnails").hidden = true
} else { } else {
document.getElementById("thumbnails").hidden = false // document.getElementById("thumbnails").hidden = false
document.getElementById("modal").hidden = true document.getElementById("modal").hidden = true
document.getElementById("modalMedia").innerHTML = "" document.getElementById("modalMedia").innerHTML = ""
window.location.hash = "" window.location.hash = ""
@ -66,6 +66,7 @@ const preload = (number) => {
} }
document.head.appendChild(preloadLink) document.head.appendChild(preloadLink)
} }
const prevPicture = () => { const prevPicture = () => {
changePicture(getPrevPicture()) changePicture(getPrevPicture())
preload(getPrevPicture()) preload(getPrevPicture())

Loading…
Cancel
Save