From f0d1cd5d68579b462cf01a4a9f7d558a231bc072 Mon Sep 17 00:00:00 2001 From: polo Date: Thu, 9 Oct 2025 14:40:54 +0200 Subject: =?UTF-8?q?description=20de=20page=20d=C3=A9plac=C3=A9e=20dans=20l?= =?UTF-8?q?a=20table=20page?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/js/modif_page.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'public') diff --git a/public/js/modif_page.js b/public/js/modif_page.js index 15f3598..aad53e9 100644 --- a/public/js/modif_page.js +++ b/public/js/modif_page.js @@ -79,13 +79,13 @@ function changePageTitle(page_id){ console.error('Erreur:', error); }); }*/ -function changeDescription(node_data_id){ +function changeDescription(page_id){ const textarea = document.getElementById("description_textarea"); fetch('index.php?page_edit=page_description', { method: 'POST', headers: { 'Content-Type': 'application/json' }, - body: JSON.stringify({description: textarea.value, node_data_id: node_data_id}) + body: JSON.stringify({description: textarea.value, page_id: page_id}) }) .then(response => response.json()) .then(data => { -- cgit v1.2.3