Use bootstrap-modal for single-calc.

This commit is contained in:
MaxJa4
2024-01-25 15:18:12 +01:00
parent 130fe2ad57
commit acf756765b
6 changed files with 119 additions and 51 deletions

View File

@@ -69,7 +69,7 @@
</button>
</div>
<div class="col-auto position-absolute end-0">
<button class="btn btn-lg btn-outline-secondary text-secondary-emphasis" id="singleCalcBtn" onclick="showSingleCalcDialog(this)" data-bs-action="tooltip" data-bs-title="Einzelnen Spieler berechnen">
<button class="btn btn-lg btn-outline-secondary text-secondary-emphasis" id="singleCalcBtn" data-bs-toggle="modal" data-bs-target="#singleCalcModal" data-bs-action="tooltip" data-bs-title="Einzelnen Spieler berechnen">
<i class="bi bi-person-fill me-2"></i>
Einzel-Abfrage
</button>
@@ -85,8 +85,6 @@
if (reqPath.startsWith("/admin/")) {
showAdminActionExecutedDialog(xhr, method);
} else if (reqPath.startsWith("/score/") && method === "post") {
showSingleCalcResultDialog(xhr, reqPath);
}
});
</script>