mirror of
https://github.com/csd4ni3l/grass_touching_captcha.git
synced 2026-01-01 04:23:45 +01:00
update modal opener to not have double string signs
This commit is contained in:
@@ -40,7 +40,7 @@
|
|||||||
{% for category, message in messages %}
|
{% for category, message in messages %}
|
||||||
{% if category == 'error' %}
|
{% if category == 'error' %}
|
||||||
const modalBody = document.getElementById("errorModalBody");
|
const modalBody = document.getElementById("errorModalBody");
|
||||||
modalBody.textContent = "{{ message|tojson }}";
|
modalBody.textContent = {{ message|tojson }};
|
||||||
|
|
||||||
const errorModal = new bootstrap.Modal(document.getElementById('errorModal'));
|
const errorModal = new bootstrap.Modal(document.getElementById('errorModal'));
|
||||||
errorModal.show();
|
errorModal.show();
|
||||||
|
|||||||
Reference in New Issue
Block a user