[BUGFIX] Page title change directly updates title in content area 92/22192/2
authorMax Roesch <typo3@elbebass.com>
Fri, 5 Jul 2013 15:00:34 +0000 (17:00 +0200)
committerGeorg Ringer <georg.ringer@gmail.com>
Thu, 11 Jul 2013 04:44:56 +0000 (06:44 +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/22192
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
t3lib/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
                );