[BUGFIX] Change name of correct pagetree entry after renaming 77/44977/3
authorMartin Gebert <martin-mfg2@gmx.de>
Fri, 27 Nov 2015 12:51:45 +0000 (13:51 +0100)
committerAndreas Fernandez <typo3@scripting-base.de>
Fri, 4 Dec 2015 09:42:43 +0000 (10:42 +0100)
commit539644a7dbb5f807450185bd9e474a48d793ad97
treee4545c7a21d91f08b08c051eac58ce90f60d6031
parent0e15ee81a240bdcda9c2aa6e98a755710ae27f57
[BUGFIX] Change name of correct pagetree entry after renaming

* The first parameter to TreeEditor.complete and
TreeEditor.beforecomplete is the TreeEditor, not the edited node.
Reflect this in the code.
* In TreeEditor.updateNodeText, update the node provided as parameter
instead of the current editNode.
* In saveTitle, remove the first parameter, because it's used in the
wrong way (code assumes i'ts a node, but it's actually a TreeEditor) and
is not necessary.
* In saveTitle, store the current editNode, in case treeEditor.editNode
changes before the ajax call completes.

Resolves: #56371
Releases: master
Change-Id: I9446969701f0e24bcc048305ea06819228982826
Reviewed-on: https://review.typo3.org/44977
Reviewed-by: Daniel Goerz <ervaude@gmail.com>
Tested-by: Daniel Goerz <ervaude@gmail.com>
Reviewed-by: Michael Oehlhof <typo3@oehlhof.de>
Tested-by: Michael Oehlhof <typo3@oehlhof.de>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
typo3/sysext/backend/Resources/Public/JavaScript/extjs/components/pagetree/javascript/actions.js
typo3/sysext/backend/Resources/Public/JavaScript/extjs/components/pagetree/javascript/treeeditor.js