diff --git a/files/assets/css/main.css b/files/assets/css/main.css index 094a57e69..35e49dd8e 100644 --- a/files/assets/css/main.css +++ b/files/assets/css/main.css @@ -5274,6 +5274,10 @@ li > .sidebar { width: 13rem; } +.shop-table-actions a { + display: flex; +} + .userbanner { object-fit: cover !important; } diff --git a/files/assets/js/bootstrap.js b/files/assets/js/bootstrap.js index 32bd45875..072b44be3 100644 --- a/files/assets/js/bootstrap.js +++ b/files/assets/js/bootstrap.js @@ -178,7 +178,9 @@ if (document.readyState === "complete" || } function post_toast(t, url, button1, button2, classname) { - if (t.id != "buy1-go" && t.id != "buy2-go") + let isShopConfirm = t.id.startsWith('buy1-go') || t.id.startsWith('buy2-go'); + + if (!isShopConfirm) { t.disabled = true; t.classList.add("disabled"); @@ -212,7 +214,7 @@ function post_toast(t, url, button1, button2, classname) { if (data && data["error"]) document.getElementById('toast-post-error-text').innerText = data["error"]; bootstrap.Toast.getOrCreateInstance(document.getElementById('toast-post-error')).show(); } - if (t.id != "buy1-go" && t.id != "buy2-go") + if (!isShopConfirm) { setTimeout(() => { t.disabled = false; diff --git a/files/templates/shop.html b/files/templates/shop.html index 405530575..637b3eabc 100644 --- a/files/templates/shop.html +++ b/files/templates/shop.html @@ -27,12 +27,6 @@ {% endblock %} {% block content %} - - {% if error %}