diff options
author | polo <ordipolo@gmx.fr> | 2025-10-09 14:40:54 +0200 |
---|---|---|
committer | polo <ordipolo@gmx.fr> | 2025-10-09 14:40:54 +0200 |
commit | f0d1cd5d68579b462cf01a4a9f7d558a231bc072 (patch) | |
tree | 2769cef714275d86781a46c2d1f1a8981e3b4bcf /public/js | |
parent | 44f4110d53f58086b17d17afe81b0da0978d2a29 (diff) | |
download | cms-f0d1cd5d68579b462cf01a4a9f7d558a231bc072.zip |
description de page déplacée dans la table page
Diffstat (limited to 'public/js')
-rw-r--r-- | public/js/modif_page.js | 4 |
1 files changed, 2 insertions, 2 deletions
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){ | |||
79 | console.error('Erreur:', error); | 79 | console.error('Erreur:', error); |
80 | }); | 80 | }); |
81 | }*/ | 81 | }*/ |
82 | function changeDescription(node_data_id){ | 82 | function changeDescription(page_id){ |
83 | const textarea = document.getElementById("description_textarea"); | 83 | const textarea = document.getElementById("description_textarea"); |
84 | 84 | ||
85 | fetch('index.php?page_edit=page_description', { | 85 | fetch('index.php?page_edit=page_description', { |
86 | method: 'POST', | 86 | method: 'POST', |
87 | headers: { 'Content-Type': 'application/json' }, | 87 | headers: { 'Content-Type': 'application/json' }, |
88 | body: JSON.stringify({description: textarea.value, node_data_id: node_data_id}) | 88 | body: JSON.stringify({description: textarea.value, page_id: page_id}) |
89 | }) | 89 | }) |
90 | .then(response => response.json()) | 90 | .then(response => response.json()) |
91 | .then(data => { | 91 | .then(data => { |