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.