Update modal IDs

This commit is contained in:
Mark Veidemanis 2022-08-11 19:36:34 +01:00
parent 47b6255f68
commit 764c970114
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
3 changed files with 4 additions and 4 deletions

View File

@ -1,5 +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 modal = document.getElementById("modal");
var html = document.querySelector('html'); var html = document.querySelector('html');
var elements = document.querySelectorAll('.modal-background'); var elements = document.querySelectorAll('.modal-background');

View File

@ -2,7 +2,7 @@
{% load static %} {% load static %}
<script src="{% static 'modal.js' %}"></script> <script src="{% static 'modal.js' %}"></script>
<div class="modal is-active is-clipped"> <div id="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">
@ -68,7 +68,7 @@
Cancel Cancel
</button> </button>
<button type="submit" class="button is-info modal-close-button">Submit</button> <button type="submit" class="button is-info modal-close-button">Submit</button>
<script>activateButtons();</script> {# <script>activateButtons();</script> #}
</form> </form>
</div> </div>

View File

@ -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 id="drilldown-modal" class="modal is-active is-clipped"> <div id="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">