Fixed bug #17434: Pagetree: when start edit, the text should be selected
authorSteffen Kamper <info@sk-typo3.de>
Wed, 2 Feb 2011 23:13:57 +0000 (23:13 +0000)
committerSteffen Kamper <info@sk-typo3.de>
Wed, 2 Feb 2011 23:13:57 +0000 (23:13 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/branches/TYPO3_4-5@10377 709f56b5-9817-0410-a4d7-c38de5d9e867

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

index c1f7daa..62420fb 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
 2011-02-02  Steffen Kamper  <steffen@typo3.org>
 
 2011-02-02  Steffen Kamper  <steffen@typo3.org>
 
+       * Fixed bug #17434: Pagetree: when start edit, the text should be selected
        * Fixed bug #17406: Pagetree Editor remains with empty value
 
 2011-02-02  Christian Kuhn  <lolli@schwarzbu.ch>
        * Fixed bug #17406: Pagetree Editor remains with empty value
 
 2011-02-02  Christian Kuhn  <lolli@schwarzbu.ch>
index 77079c3..2ef5eff 100644 (file)
@@ -76,6 +76,12 @@ TYPO3.Components.PageTree.TreeEditor = Ext.extend(Ext.tree.TreeEditor, {
                        fn: function(node, newValue, oldValue) {
                                this.editNode.ownerTree.commandProvider.saveTitle(node, this.updatedValue, oldValue, this);
                        }
                        fn: function(node, newValue, oldValue) {
                                this.editNode.ownerTree.commandProvider.saveTitle(node, this.updatedValue, oldValue, this);
                        }
+               },
+
+               startEdit: {
+                       fn: function(element, value) {
+                               this.field.selectText();
+                       }
                }
        },
 
                }
        },