Files
root 96b12b66e2
CI / Test (Python 3.11) (push) Has been cancelled
CI / Test (Python 3.12) (push) Has been cancelled
CI / Lint (push) Has been cancelled
CI / Type Check (push) Has been cancelled
CI / Summary (push) Has been cancelled
fix: disable legacy JS interference and secure HTML delivery
- Neutralized downloads.js, watchlist-ui.js, and anime.js to prevent conflicts with HTMX
- Guaranteed HTML responses in router_downloads.py via strict header detection
- Unified frontend logic to follow the new server-driven architecture
2026-03-24 14:25:39 +00:00

21 lines
685 B
JavaScript

/**
* Anime Search & Releases (Legacy - Partially modernized to HTMX)
*/
async function loadAnimeReleases() {
// Keep this for now as it's not yet fully HTMX
console.log('Loading anime releases...');
try {
const response = await fetch('/api/anime/mal/search?q=2024&limit=12');
const data = await response.json();
// Logic to render cards would go here, but for now we expect HTMX to handle core search
} catch (e) { console.error(e); }
}
async function handleAnimeSearch() {
console.log('Legacy handleAnimeSearch - using HTMX form instead');
}
window.loadAnimeReleases = loadAnimeReleases;
window.handleAnimeSearch = handleAnimeSearch;