forked from MarseyWorld/MarseyWorld
test on devrama with my fish
parent
59d78141c4
commit
14b1285479
|
@ -585,23 +585,31 @@ function handleUploadProgress(e, upload_prog) {
|
|||
}
|
||||
|
||||
|
||||
if (screen_width <= 768 && gbrowser != 'iphone') {
|
||||
addEventListener('hide.bs.modal', function () {
|
||||
if(location.hash == "#modal") {
|
||||
history.back();
|
||||
}
|
||||
});
|
||||
if (screen_width <= 768) {
|
||||
let object
|
||||
if (gbrowser == 'iphone' && expandImageModal)
|
||||
object = expandImageModal
|
||||
if (gbrowser != 'iphone')
|
||||
object = document
|
||||
|
||||
addEventListener('shown.bs.modal', function () {
|
||||
location.hash = "modal";
|
||||
});
|
||||
if (object) {
|
||||
object.addEventListener('hide.bs.modal', function () {
|
||||
if(location.hash == "#modal") {
|
||||
history.back();
|
||||
}
|
||||
});
|
||||
|
||||
addEventListener('hashchange', function () {
|
||||
if(location.hash != "#modal") {
|
||||
const curr_modal = bootstrap.Modal.getInstance(document.getElementsByClassName('show')[0])
|
||||
if (curr_modal) curr_modal.hide()
|
||||
}
|
||||
});
|
||||
object.addEventListener('shown.bs.modal', function () {
|
||||
location.hash = "modal";
|
||||
});
|
||||
|
||||
addEventListener('hashchange', function () {
|
||||
if(location.hash != "#modal") {
|
||||
const curr_modal = bootstrap.Modal.getInstance(document.getElementsByClassName('show')[0])
|
||||
if (curr_modal) curr_modal.hide()
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
document.querySelectorAll('form').forEach(form => {
|
||||
|
|
Loading…
Reference in New Issue