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

19 lines
557 B
JavaScript

/**
* Watchlist UI (Legacy - Modernized to HTMX)
*/
async function displayWatchlist() {
console.log('Legacy displayWatchlist called - redirected to HTMX');
if (typeof htmx !== 'undefined') {
htmx.trigger('#watchlist-items-container', 'load');
}
}
// Global exposure for legacy calls
window.displayWatchlist = displayWatchlist;
window.handleDeleteFromWatchlist = (id) => {
if (confirm('Retirer de la watchlist ?')) {
htmx.ajax('DELETE', `/api/watchlist/${id}`, { target: `#watchlist-${id}`, swap: 'outerHTML' });
}
};