[BUGFIX] pagetree->expand contextmenu action does not work as expected
authorStefan <stefan.galinski@gmail.com>
Wed, 2 Mar 2011 17:19:49 +0000 (18:19 +0100)
committerStefan Galinski <stefan.galinski@gmail.com>
Fri, 4 Mar 2011 12:51:46 +0000 (13:51 +0100)
When I click "expand branch" in the new pagetree once it simply expands the next level und the page where I opened the context menu.

When I click the same context menu link (at the same page) a second time it expands all pages on all levels below the page where I clicked.

I'd expect the tree either doing the first OR the second action but not 2 different actions on the same useraction.

Change-Id: I4f6d2b5342e0d8c5f4e89d71b2527f8c640ad30e
Resolves: #M17394
Reviewed-on: http://review.typo3.org/986
Reviewed-by: Stefan Galinski <stefan.galinski@gmail.com>
Tested-by: Stefan Galinski <stefan.galinski@gmail.com>
t3lib/js/extjs/components/pagetree/javascript/actions.js

index b3b51f3..1dbc853 100644 (file)
@@ -247,8 +247,7 @@ TYPO3.Components.PageTree.Actions = {
         * @return {void}
         */
        collapseBranch: function(node) {
-               node.collapseChildNodes(true);
-               node.collapse();
+               node.collapse(true);
        },
 
        /**
@@ -258,8 +257,7 @@ TYPO3.Components.PageTree.Actions = {
         * @return {void}
         */
        expandBranch: function(node) {
-               node.expand();
-               node.expandChildNodes(true);
+               node.expand(true);
        },
 
        /**