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 %}