limit #modal to expanded images

pull/139/head
Aevann 2023-03-11 06:59:47 +02:00
parent 84cebda61f
commit f36336ea94
1 changed files with 2 additions and 2 deletions

View File

@ -598,11 +598,11 @@ function handleUploadProgress(e, upload_prog) {
}
}
window.addEventListener('show.bs.modal', function () {
document.getElementById('expandImageModal').addEventListener('show.bs.modal', function () {
location.hash = "modal";
});
window.addEventListener('hide.bs.modal', function () {
document.getElementById('expandImageModal').addEventListener('hide.bs.modal', function () {
if(location.hash == "#modal") {
history.back();
}