From 20067bb2b243d3b49a1c09fe140647ae7d4ac63a Mon Sep 17 00:00:00 2001 From: Aevann Date: Thu, 2 Feb 2023 01:31:52 +0200 Subject: [PATCH] remove #modal shit --- files/assets/js/core.js | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/files/assets/js/core.js b/files/assets/js/core.js index c1ce93f83..5d9c8b838 100644 --- a/files/assets/js/core.js +++ b/files/assets/js/core.js @@ -133,23 +133,6 @@ if (location.pathname != '/submit') }); } -document.addEventListener('show.bs.modal', function (e) { - location.hash = "modal"; -}); - -document.addEventListener('hide.bs.modal', function (e) { - if(location.hash == "#modal") { - history.back(); - } -}); - -window.addEventListener('hashchange', function (e) { - if(location.hash != "#modal") { - const curr_modal = bootstrap.Modal.getInstance(document.getElementsByClassName('show')[0]) - if (curr_modal) curr_modal.hide() - } -}); - function disable(t) { t.classList.add('disabled'); setTimeout(() => {