Conservation de l'état de déroulement de l'arborescence (seulement pour le déroulement).
[MosaicDocument.git] / default_blocks / tree_block_template.pt
index 1b45b19..468305d 100755 (executable)
@@ -41,7 +41,7 @@
                      rows       treeDict/rows;
                      height                    tree/height;
                      rootNode   python:rows.pop(0);
-                     box_id string:tree_box_${rootNode/object/id};
+                     box_id     tree/tree_pre;
                      portal_url here/portal_url"
          tal:condition="python:displayAction=='view' and rows"
          tal:omit-tag=""
@@ -63,8 +63,8 @@
 
                                <tr>
                                        <td>
-                                               <table  cellspacing="0">
-                                                       <tbody tal:attributes="id  box_id">
+                                               <table cellspacing="0">
+                                                       <tbody tal:attributes="id  box_id; name rootNode/id">
                                                                <tr tal:repeat="row rows">
                                                                <td tal:define="indent python: row.depth - 1" tal:attributes="colspan indent" tal:condition="indent">&nbsp;</td>
                                                                <td tal:define="state row/state ; rlink row/branch ; msg python:state > 0 and 'collapse' or 'expand'" width="16"