mirror of
https://github.com/fastapi-admin/fastapi-admin.git
synced 2025-08-14 02:28:40 +08:00
Simplify code
This commit is contained in:
@ -211,9 +211,7 @@
|
||||
<script>
|
||||
function confirmAction(method) {
|
||||
if (method === "DELETE") {
|
||||
if (!confirm("{{ _('delete_confirmation') }}")) {
|
||||
return false;
|
||||
}
|
||||
return confirm("{{ _('delete_confirmation') }}");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user