This commit is contained in:
Ross
2024-02-12 21:55:45 +00:00
parent dbdba072d0
commit dd2702d495
2 changed files with 9 additions and 0 deletions
+8
View File
@@ -12,6 +12,14 @@ window.control_pressed = false;
$(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) => {
let status = e.currentTarget.checked;
$("table tbody input").prop("checked", status);
+1
View File
@@ -123,6 +123,7 @@
{% endblock %}
<div class="row clear-both">
<div class="col-md-12">
<div class="htmx-error"></div>
{% block content %}
{% endblock %}
</div>