Fix modals not closing on Android

This commit is contained in:
Mark Veidemanis 2022-08-10 22:40:54 +01:00
parent fa11be741a
commit 1ebccc7338
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
4 changed files with 8 additions and 5 deletions

View File

@ -59,4 +59,4 @@ META_MAX_CHUNK_SIZE = 500
META_QUERY_SIZE = 10000
DEBUG = True
PROFILER = False
PROFILER = False

View File

@ -1,4 +1,5 @@
var modal = document.querySelector('.modal'); // assuming you have only 1
// var modal = document.querySelector('.modal'); // assuming you have only 1
var modal = document.getElementById("drilldown-modal");
var html = document.querySelector('html');
var elements = document.querySelectorAll('.modal-background');
@ -34,4 +35,4 @@ activateButtons();
// e.preventDefault();
// modal.classList.remove('is-active');
// html.classList.remove('is-clipped');
// });
// });

View File

@ -4,7 +4,7 @@
<script src="{% static 'modal.js' %}"></script>
<link rel ="stylesheet" href="{% static 'tabs.css' %}">
<script src="{% static 'tabs.js' %}"></script>
<div class="modal is-active is-clipped">
<div id="drilldown-modal" class="modal is-active is-clipped">
<div class="modal-background"></div>
<div class="modal-content">
<div class="box">
@ -104,5 +104,6 @@
</div>
</div>
<button class="modal-close is-large" aria-label="close"></button>
<script>activateButtons();</script>
</div>
</div>

View File

@ -1,5 +1,6 @@
from django_tables2 import Column, Table
from django.conf import settings
from django_tables2 import Column, Table
class DrilldownTable(Table):
id = Column()