Déplace les scripts custom avnt le script générique
This commit is contained in:
parent
d98d0e5b82
commit
d798fdfa01
1 changed files with 2 additions and 3 deletions
|
@ -18,6 +18,8 @@
|
||||||
<script src="{% static 'vendor/jquery/jquery-3.5.1.min.js' %}"></script>
|
<script src="{% static 'vendor/jquery/jquery-3.5.1.min.js' %}"></script>
|
||||||
{# <script src="{% static 'elections/js/main.js' %}"></script> #}
|
{# <script src="{% static 'elections/js/main.js' %}"></script> #}
|
||||||
|
|
||||||
|
{% block extra_head %}{% endblock extra_head %}
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
document.addEventListener('DOMContentLoaded', () => {
|
document.addEventListener('DOMContentLoaded', () => {
|
||||||
// Delete notifications
|
// Delete notifications
|
||||||
|
@ -61,7 +63,6 @@
|
||||||
|
|
||||||
$modalCloses.forEach(function($el) {
|
$modalCloses.forEach(function($el) {
|
||||||
$el.addEventListener('click', (event) => {
|
$el.addEventListener('click', (event) => {
|
||||||
event.stopPropagation();
|
|
||||||
document.documentElement.classList.remove('is-clipped');
|
document.documentElement.classList.remove('is-clipped');
|
||||||
$modals.forEach(function($el) {
|
$modals.forEach(function($el) {
|
||||||
$el.classList.remove('is-active');
|
$el.classList.remove('is-active');
|
||||||
|
@ -106,8 +107,6 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{% block extra_head %}{% endblock extra_head %}
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|
Loading…
Reference in a new issue