From 46f890d515b39ccdd28628653f3c206ce4e6c7a5 Mon Sep 17 00:00:00 2001 From: Eric Fayolle Date: Thu, 10 Feb 2022 17:59:49 +0100 Subject: [PATCH] =?utf8?q?Prends=20en=20compte=20les=20optionnels=20sous?= =?utf8?q?=20du=20MC=20point=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- testFlask/templates/commandes_2.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testFlask/templates/commandes_2.html b/testFlask/templates/commandes_2.html index c70e059a..53158c54 100644 --- a/testFlask/templates/commandes_2.html +++ b/testFlask/templates/commandes_2.html @@ -677,8 +677,8 @@ $(function(){ let buildOptionalTreeSrc=function(node) { if ( node == null ) return []; - let parentList = node.getParentList(false,false); // default : (false,false)==(rootNode exclus, not self) - if ( parentList.length > 0 ) { parentList=parentList.slice(1);}; // The first node is the code node + let parentList = node.getParentList(false,true); // default : (false,false)==(rootNode exclus, not self) + if ( parentList.length > 0 ) { parentList=parentList.slice(1);}; // The first node is the current dataset name node // La construction des optionals en suivant les parents fonctionnent car les SIMP ne portent pas les optionnals // [ {title: "Node 1"}, {title: "Folder 2", children: [ {title: "Node 2.1"}, {title: "Node 2.2"} ]} ] // [ {title: "Node 1"} ] + [ {title: "Folder 2", children: [ {title: "Node 2.1"}, {title: "Node 2.2"} ]} ] -- 2.39.2