limit #modal to expanded images
parent
84cebda61f
commit
f36336ea94
|
@ -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";
|
location.hash = "modal";
|
||||||
});
|
});
|
||||||
|
|
||||||
window.addEventListener('hide.bs.modal', function () {
|
document.getElementById('expandImageModal').addEventListener('hide.bs.modal', function () {
|
||||||
if(location.hash == "#modal") {
|
if(location.hash == "#modal") {
|
||||||
history.back();
|
history.back();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue