From: Eric Fayolle Date: Thu, 10 Feb 2022 16:59:49 +0000 (+0100) Subject: Prends en compte les optionnels sous du MC pointé X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=46f890d515b39ccdd28628653f3c206ce4e6c7a5;p=tools%2Feficas.git Prends en compte les optionnels sous du MC pointé --- 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"} ]} ]