Fixed bug #17406: Pagetree Editor remains with empty value
authorSteffen Kamper <info@sk-typo3.de>
Wed, 2 Feb 2011 22:38:27 +0000 (22:38 +0000)
committerSteffen Kamper <info@sk-typo3.de>
Wed, 2 Feb 2011 22:38:27 +0000 (22:38 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/branches/TYPO3_4-5@10376 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/js/extjs/components/pagetree/javascript/treeeditor.js

index e77fea5..c1f7daa 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2011-02-02  Steffen Kamper  <steffen@typo3.org>
+
+       * Fixed bug #17406: Pagetree Editor remains with empty value
+
 2011-02-02  Christian Kuhn  <lolli@schwarzbu.ch>
 
        * Fixed bug #17087: BE user password not changable via setup module with "saltedpasswords" (Thanks to Marcus Krause)
index c88b064..77079c3 100644 (file)
@@ -66,6 +66,7 @@ TYPO3.Components.PageTree.TreeEditor = Ext.extend(Ext.tree.TreeEditor, {
                beforecomplete: function(node) {
                        this.updatedValue = this.getValue();
                        if (this.updatedValue === '') {
+                               this.cancelEdit();
                                return false;
                        }
                        this.setValue(this.editNode.attributes.prefix + Ext.util.Format.htmlEncode(this.updatedValue) + this.editNode.attributes.suffix);