feat & fix : intégration IA éditeur + onglet admin IA + corrections CSP (v1.6.24-25)
- #96 : boutons IA sidebar éditeur (analyse critique / réécriture) via Anthropic API - #97 : onglet admin /admin/ia — provider anthropic/claude_code, modèle, procédure CLI - #95 : extraction scripts inline vers fichiers JS (comments.js, post_confirm.js, admin.js) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -9,6 +9,16 @@ document.addEventListener('DOMContentLoaded', function () {
|
||||
});
|
||||
});
|
||||
|
||||
// Boutons data-confirm-discard (évite onclick inline bloqué par CSP)
|
||||
document.querySelectorAll('[data-confirm-discard]').forEach(function (btn) {
|
||||
btn.addEventListener('click', function () {
|
||||
var msg = btn.getAttribute('data-confirm-msg') || 'Confirmer ?';
|
||||
if (window.confirm(msg)) {
|
||||
window.location = btn.getAttribute('data-discard-url');
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
// Sélection globale articles
|
||||
var checkAll = document.getElementById('check-all');
|
||||
if (checkAll) {
|
||||
|
||||
Reference in New Issue
Block a user