From 46b455a0d3e96099e78975f53a25365a2ca9dcb4 Mon Sep 17 00:00:00 2001 From: polo Date: Fri, 5 Sep 2025 11:27:37 +0200 Subject: =?UTF-8?q?classe=20Editor=20et=20encapsulation,=20placement=20art?= =?UTF-8?q?icle=20premier=20ou=20dernier,=20variable=20window.Config.page,?= =?UTF-8?q?=20s=C3=A9paration=20openEditor=20et=20initEditor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/js/new_page.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'public/js/new_page.js') diff --git a/public/js/new_page.js b/public/js/new_page.js index 5b1c5c5..4b49060 100644 --- a/public/js/new_page.js +++ b/public/js/new_page.js @@ -2,10 +2,7 @@ // même fonction que dans modif_page.js function makePageNamePath(){ - const page_name = document.getElementById("page_name"); - const page_name_path = document.getElementById("page_name_path"); - - page_name_path.value = page_name.value + document.getElementById("page_name_path").value = document.getElementById("page_name").value .normalize("NFD") // décompose lettres + accents: é devient "e + accent aigu" .replace(/[\u0300-\u036f]/g, "") // supprime les accents .replace(/[^a-zA-Z0-9]+/g, " ") // supprime tout ce qu'il n'est pas alphanuméric -- cgit v1.2.3