test on devrama with my fish
parent
59d78141c4
commit
14b1285479
|
@ -585,14 +585,21 @@ function handleUploadProgress(e, upload_prog) {
|
|||
}
|
||||
|
||||
|
||||
if (screen_width <= 768 && gbrowser != 'iphone') {
|
||||
addEventListener('hide.bs.modal', function () {
|
||||
if (screen_width <= 768) {
|
||||
let object
|
||||
if (gbrowser == 'iphone' && expandImageModal)
|
||||
object = expandImageModal
|
||||
if (gbrowser != 'iphone')
|
||||
object = document
|
||||
|
||||
if (object) {
|
||||
object.addEventListener('hide.bs.modal', function () {
|
||||
if(location.hash == "#modal") {
|
||||
history.back();
|
||||
}
|
||||
});
|
||||
|
||||
addEventListener('shown.bs.modal', function () {
|
||||
object.addEventListener('shown.bs.modal', function () {
|
||||
location.hash = "modal";
|
||||
});
|
||||
|
||||
|
@ -602,6 +609,7 @@ if (screen_width <= 768 && gbrowser != 'iphone') {
|
|||
if (curr_modal) curr_modal.hide()
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
document.querySelectorAll('form').forEach(form => {
|
||||
|
|
Loading…
Reference in New Issue