From c2d7f4af6b45f503c1a6467575b7744b56e0a1b9 Mon Sep 17 00:00:00 2001 From: Roger Rehnelt Date: Thu, 1 Oct 2026 21:08:26 +0200 Subject: Widerruf: Bestätigung als Meldung im Dialog MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Statt alert() steht der Eingang als Statusmeldung mit Fokus im Dialog. Co-Authored-By: Claude Opus 5.5 --- views/mods/mod_revocation/wp_footer.phtml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/views/mods/mod_revocation/wp_footer.phtml b/views/mods/mod_revocation/wp_footer.phtml index 4ca299a..bec1b82 100644 --- a/views/mods/mod_revocation/wp_footer.phtml +++ b/views/mods/mod_revocation/wp_footer.phtml @@ -165,8 +165,17 @@ } else { - alert(); - close_dialog(event); + // Bestätigung im Dialog statt alert(): Statusmeldung mit Fokus, Absenden ausgeblendet + const success = document.createElement('div'); + success.className = 'wpsg_revocation_page_success'; + success.setAttribute('role', 'status'); + success.tabIndex = -1; + success.textContent = ; + + el_dialog_content.replaceChildren(success); + el_dialog.querySelector('.wpsg_revocation_button_submit').hidden = true; + el_dialog.classList.remove('loading'); + success.focus(); document.querySelectorAll('.wpsg_revocation_order_product_checkbox:checked').forEach(el => { @@ -209,6 +218,7 @@ el_dialog.removeAttribute('aria-hidden'); el_dialog.classList.add('visible'); el_dialog.classList.add('loading'); + el_dialog.querySelector('.wpsg_revocation_button_submit').hidden = false; el_dialog.querySelector('.inner').focus(); const dialog_config = { -- cgit v1.2.3