This commit is contained in:
2025-08-31 12:52:17 +02:00
parent dbf53a9c30
commit d1c9d27219
4 changed files with 88 additions and 23 deletions

14
assets/app.js Normal file
View File

@@ -0,0 +1,14 @@
// Kleine UX-Helferlein keine externen Abhängigkeiten nötig.
(function(){
// Confirm bei Ausbuchen-Buttons (nur mit .danger)
document.addEventListener('click', function(e){
const btn = e.target.closest('button.btn.danger');
if(!btn) return;
const form = btn.closest('form');
if(!form) return;
if(!confirm('Einheit wirklich ausbuchen?')){
e.preventDefault();
e.stopPropagation();
}
});
})();