File preview

This commit is contained in:
2025-06-01 12:31:10 +02:00
parent c0a97a1714
commit aeefd17b10
8 changed files with 280 additions and 8 deletions

View File

@@ -360,4 +360,20 @@ document.addEventListener('DOMContentLoaded', function() {
});
});
}
// Add event listener for download button
const downloadEventsBtn = document.getElementById('downloadEvents');
if (downloadEventsBtn) {
downloadEventsBtn.addEventListener('click', function() {
const eventType = document.getElementById('eventTypeFilter').value;
const dateRange = document.getElementById('dateRangeFilter').value;
const userId = document.getElementById('userFilter').value;
// Construct download URL with current filters
const downloadUrl = `/settings/events/download?event_type=${eventType}&date_range=${dateRange}&user_id=${userId}`;
// Trigger download
window.location.href = downloadUrl;
});
}
});