PageSourceSearch

https://www.ausgezeichnet.org/assets/js/staff/mailing_tool_templates_index-TdafXii.js

js ausgezeichnet.org collected 2026-10-01 15:10:18 UTC 625 bytes, 14 lines download raw bytes

1// Admin index page: browser-confirm before deleting a mailing tool template.
2// Fallback confirm() is fine here — matches other admin flows and avoids a modal dep.
3
4document.addEventListener( "DOMContentLoaded", function() {
5    const forms = document.querySelectorAll( "form[data-confirm-message]" );
6    forms.forEach( function( form ) {
7        form.addEventListener( "submit", function( event ) {
8            const message = form.getAttribute( "data-confirm-message" ) || "Are you sure?";
9            if ( !window.confirm( message ) ) {
10                event.preventDefault();
11            }
12        } );
13    } );
14} );

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.