diff --git a/dashboard.go b/dashboard.go index d923cb8..13a210d 100644 --- a/dashboard.go +++ b/dashboard.go @@ -5219,15 +5219,6 @@ func ScriptAnalysisHTML() string {
-
- -
- - - -
-
-
@@ -5362,7 +5353,7 @@ func ScriptAnalysisHTML() string { async function fetchData() { const days = document.querySelector('.filter-btn.active')?.dataset.days || '30'; - const repo = document.querySelector('.source-btn.active')?.dataset.repo || 'ProxmoxVE'; + const repo = 'ProxmoxVE'; try { const resp = await fetch('/api/scripts?days=' + days + '&repo=' + repo); if (!resp.ok) throw new Error('Fetch failed'); @@ -5534,14 +5525,6 @@ func ScriptAnalysisHTML() string { refreshData(); }); }); - document.querySelectorAll('.source-btn').forEach(btn => { - btn.addEventListener('click', function() { - document.querySelectorAll('.source-btn').forEach(b => b.classList.remove('active')); - this.classList.add('active'); - refreshData(); - }); - }); - refreshData();