Fix modals not closing on Android
This commit is contained in:
parent
fa11be741a
commit
1ebccc7338
|
@ -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 html = document.querySelector('html');
|
||||||
|
|
||||||
var elements = document.querySelectorAll('.modal-background');
|
var elements = document.querySelectorAll('.modal-background');
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<script src="{% static 'modal.js' %}"></script>
|
<script src="{% static 'modal.js' %}"></script>
|
||||||
<link rel ="stylesheet" href="{% static 'tabs.css' %}">
|
<link rel ="stylesheet" href="{% static 'tabs.css' %}">
|
||||||
<script src="{% static 'tabs.js' %}"></script>
|
<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-background"></div>
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
<div class="box">
|
<div class="box">
|
||||||
|
@ -104,5 +104,6 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<button class="modal-close is-large" aria-label="close"></button>
|
<button class="modal-close is-large" aria-label="close"></button>
|
||||||
|
<script>activateButtons();</script>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
from django_tables2 import Column, Table
|
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
|
from django_tables2 import Column, Table
|
||||||
|
|
||||||
|
|
||||||
class DrilldownTable(Table):
|
class DrilldownTable(Table):
|
||||||
id = Column()
|
id = Column()
|
||||||
|
|
Loading…
Reference in New Issue