[BUGFIX] Page title change directly updates title in content area 47/21947/2
authorMax Roesch <typo3@elbebass.com>
Fri, 5 Jul 2013 15:00:34 +0000 (17:00 +0200)
committerSteffen Ritter <info@rs-websystems.de>
Fri, 5 Jul 2013 15:07:31 +0000 (17:07 +0200)
Updating the page title in the page tree by double click editing it
calls the changes in right order, by first persisting the
change and then doing the reload of the content area.

Resolves: #49706
Releases: 6.2, 6.1, 6.0
Change-Id: Id108659f1a8bd7a4ecd003337b0782d4fe7d3b68
Reviewed-on: https://review.typo3.org/21947
Reviewed-by: Steffen Ritter
Tested-by: Steffen Ritter
typo3/js/extjs/components/pagetree/javascript/actions.js

index 33f18ae..bfbf2cb 100644 (file)
@@ -758,7 +758,6 @@ TYPO3.Components.PageTree.Actions = {
         * @return {void}
         */
        saveTitle: function(node, newText, oldText, treeEditor) {
-               this.singleClick(node.editNode, node.editNode.ownerTree);
                if (newText === oldText || newText == '') {
                        treeEditor.updateNodeText(
                                node,
@@ -781,6 +780,7 @@ TYPO3.Components.PageTree.Actions = {
                                                Ext.util.Format.htmlEncode(oldText)
                                        );
                                }
+                               this.singleClick(node.editNode, node.editNode.ownerTree);
                        },
                        this
                );