forked from rDrama/rDrama
same as last commit
parent
eff82be3dc
commit
2da15d64e4
|
@ -586,16 +586,16 @@ function handleUploadProgress(e, upload_prog) {
|
||||||
|
|
||||||
|
|
||||||
if (screen_width <= 768) {
|
if (screen_width <= 768) {
|
||||||
addEventListener('shown.bs.modal', function () {
|
|
||||||
location.hash = "modal";
|
|
||||||
});
|
|
||||||
|
|
||||||
addEventListener('hidden.bs.modal', function () {
|
addEventListener('hidden.bs.modal', function () {
|
||||||
if(location.hash == "#modal") {
|
if(location.hash == "#modal") {
|
||||||
history.back();
|
history.back();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
addEventListener('shown.bs.modal', function () {
|
||||||
|
location.hash = "modal";
|
||||||
|
});
|
||||||
|
|
||||||
addEventListener('hashchange', function () {
|
addEventListener('hashchange', function () {
|
||||||
if(location.hash != "#modal") {
|
if(location.hash != "#modal") {
|
||||||
const curr_modal = bootstrap.Modal.getInstance(document.getElementsByClassName('show')[0])
|
const curr_modal = bootstrap.Modal.getInstance(document.getElementsByClassName('show')[0])
|
||||||
|
|
Loading…
Reference in New Issue