.
This commit is contained in:
@@ -12,6 +12,14 @@ window.control_pressed = false;
|
|||||||
|
|
||||||
|
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
|
document.body.addEventListener("htmx:responseError", function(e) {
|
||||||
|
error = e.detail.xhr.response;
|
||||||
|
e = document.getElementById("htmx-error");
|
||||||
|
e.innerHTML = error;
|
||||||
|
e.classList.remove("hidden");
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
$("table thead th input").click((e) => {
|
$("table thead th input").click((e) => {
|
||||||
let status = e.currentTarget.checked;
|
let status = e.currentTarget.checked;
|
||||||
$("table tbody input").prop("checked", status);
|
$("table tbody input").prop("checked", status);
|
||||||
|
|||||||
@@ -123,6 +123,7 @@
|
|||||||
{% endblock %}
|
{% endblock %}
|
||||||
<div class="row clear-both">
|
<div class="row clear-both">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
|
<div class="htmx-error"></div>
|
||||||
{% block content %}
|
{% block content %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user