feat: replace native confirm with custom modal to fix auto-close issue

This commit is contained in:
infosave2007
2026-01-23 19:08:41 +03:00
parent 690881803d
commit 14eda839bc
3 changed files with 77 additions and 3 deletions
+2 -2
View File
@@ -455,8 +455,8 @@ document.addEventListener('DOMContentLoaded', function() {
e.preventDefault();
e.stopPropagation();
e.stopImmediatePropagation();
const confirmResult = confirm('Удалить протокол и всех его клиентов?');
if (!confirmResult) return;
const confirmed = await showConfirmModal('Удалить протокол и всех его клиентов?', 'Удаление протокола');
if (!confirmed) return;
const slug = btn.getAttribute('data-slug');
const m = document.getElementById('uninstallSpMsg');
m.textContent = '';