Fixed Bug #16635: TCA Tree does not save collapse/expand state
authorSteffen Ritter <info@rs-websystems.de>
Wed, 1 Dec 2010 20:15:47 +0000 (20:15 +0000)
committerSteffen Ritter <info@rs-websystems.de>
Wed, 1 Dec 2010 20:15:47 +0000 (20:15 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@9737 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/tceforms/class.t3lib_tceforms_tree.php

index 650cc85..4aa3de7 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -32,6 +32,7 @@
 
        * Fixed Bug #16613: CleanUp alt_db_navframe.php to work with new workspaces module
        * Fixed Bug #16218: TCE-Forms does not use sprite icons -- this leads to inconsistency
+       * Fixed Bug #16635: TCA Tree does not save collapse/expand state
 
 2010-12-01  Sebastian Kurfuerst  <sebastian@typo3.org>
 
index 3b3bfc7..01c3ebc 100644 (file)
@@ -168,7 +168,13 @@ class t3lib_TCEforms_Tree {
                                                        node.getUI().toggleCheck(node.attributes.checked);
                                                }
                                        },
-                                       checkchange: TYPO3.Components.Tree.TcaCheckChangeHandler
+                                       checkchange: TYPO3.Components.Tree.TcaCheckChangeHandler,
+                                       collapsenode: function(node) {
+                                               top.TYPO3.BackendUserSettings.ExtDirect.removeFromList("tcaTrees." + this.ucId, node.attributes.uid);
+                                       },
+                                       expandnode: function(node) {
+                                               top.TYPO3.BackendUserSettings.ExtDirect.addToList("tcaTrees." + this.ucId, node.attributes.uid);
+                                       }
                                },
                                tcaMaxItems: ' . ($PA['fieldConf']['config']['maxitems'] ? intval($PA['fieldConf']['config']['maxitems']) : 99999) . ',
                                tcaExclusiveKeys: "' . (