From 1236d7bcd53a3ea59a7b2357c22207445e0abe58 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 8 Oct 2022 08:13:35 +0200 Subject: [PATCH] fix "remove" button in /live --- files/assets/js/bootstrap.js | 9 +++------ files/templates/live.html | 5 ++--- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/files/assets/js/bootstrap.js b/files/assets/js/bootstrap.js index 36b2bf97d..8b4ca23e5 100644 --- a/files/assets/js/bootstrap.js +++ b/files/assets/js/bootstrap.js @@ -340,15 +340,12 @@ function timestamp(str, ti) { }; function areyousure(t) { - if (t.value) { - t.type = 'submit'; + if (t.value) t.value = 'Are you sure?' - } else - { t.innerHTML = t.innerHTML.replace(t.textContent, 'Are you sure?') - } - t.setAttribute("onclick", t.dataset.click); + + t.setAttribute("onclick", t.dataset.click); if (t.dataset.dismiss) t.setAttribute("data-bs-dismiss", t.dataset.dismiss); diff --git a/files/templates/live.html b/files/templates/live.html index ae5077f0f..63f03603b 100644 --- a/files/templates/live.html +++ b/files/templates/live.html @@ -59,8 +59,7 @@
- - +
{% endif %} @@ -85,7 +84,7 @@
- +
{% endif %}