Add backdrop click to close test template modal
Some checks failed
Validate / validate (push) Failing after 7s

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-02-09 19:14:39 +03:00
parent 62a809f28f
commit 3e835a8e4f

View File

@@ -2477,7 +2477,15 @@ async function showTestTemplateModal(templateId) {
document.getElementById('test-template-results').style.display = 'none'; document.getElementById('test-template-results').style.display = 'none';
// Show modal // Show modal
document.getElementById('test-template-modal').style.display = 'flex'; const modal = document.getElementById('test-template-modal');
modal.style.display = 'flex';
// Add backdrop click handler to close modal
modal.onclick = function(event) {
if (event.target === modal) {
closeTestTemplateModal();
}
};
} }
// Close test template modal // Close test template modal