diff options
Diffstat (limited to 'public')
| -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 => { |
