limiting the #modal shit to mobile only

pull/139/head
Aevann 2023-03-12 10:34:33 +02:00
parent 0f62958024
commit 2953a918bd
1 changed files with 19 additions and 16 deletions

View File

@ -584,6 +584,8 @@ function handleUploadProgress(e, upload_prog) {
}
}
if (width <= 768) {
document.getElementById('expandImageModal').addEventListener('show.bs.modal', function () {
setTimeout(() => {
location.hash = "modal";
@ -602,3 +604,4 @@ window.addEventListener('hashchange', function () {
if (curr_modal) curr_modal.hide()
}
});
}