From 73d49e47fe1f74a65c3f39a293b0f9fab5bfdbd0 Mon Sep 17 00:00:00 2001 From: polo-pc-greta Date: Wed, 9 Apr 2025 13:32:47 +0200 Subject: =?UTF-8?q?simplification=20de=20l'apr=C3=A8s=20cr=C3=A9ation=20d'?= =?UTF-8?q?une=20news,=20MAJ=20Config=20et=20fichier=20deploiement.txt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/css/main.css | 3 ++- public/images/meeting_aquabaie.png | Bin 0 -> 456439 bytes public/index.php | 7 ------- public/js/tinymce.js | 23 ++++++----------------- 4 files changed, 8 insertions(+), 25 deletions(-) create mode 100644 public/images/meeting_aquabaie.png (limited to 'public') diff --git a/public/css/main.css b/public/css/main.css index cb44e16..b297a65 100644 --- a/public/css/main.css +++ b/public/css/main.css @@ -76,6 +76,7 @@ button .action_icon background-color: #ffff00; border-radius: 4px; border: lightgrey 2px outset; + cursor: pointer; } button .action_icon:hover { @@ -122,9 +123,9 @@ main button } main button:hover { - cursor: pointer; /* curseur qui pointe du doigt */ background-color: #ffff00; border-radius: 4px; + cursor: pointer; } article a:hover diff --git a/public/images/meeting_aquabaie.png b/public/images/meeting_aquabaie.png new file mode 100644 index 0000000..58bc1f7 Binary files /dev/null and b/public/images/meeting_aquabaie.png differ diff --git a/public/index.php b/public/index.php index 8cb2b9a..abdac71 100644 --- a/public/index.php +++ b/public/index.php @@ -1,13 +1,6 @@ response.json()) .then(data => { if (data.success) { - console.log(data.article_id); + //console.log(data.article_id); if(id[0] === 'n' && page === 'article'){ console.log('données envoyées au serveur avec succès.'); - // remplacer bouton Enregistrer par Supprimer - submit_btn = document.getElementById('save-' + id_from_builder); // id précédent par NewBuilder - submit_btn.classList.add('hidden'); - delete_btn = document.getElementById('delete-' + id_from_builder); - delete_btn.id = data.article_id; - delete_btn.querySelector('button').setAttribute('onclick', "deleteArticle('" + data.article_id + "', 'article')"); - delete_btn.classList.remove('hidden'); + // redirection page de l'article + window.setTimeout(function(){ + location.href = "index.php?page=article&id=" + data.article_id; + }, 0); + } else{ // Fermer l'éditeur et mettre à jour le contenu de l'article -- cgit v1.2.3