Commit e0fe5c0a authored by Frank Nägler's avatar Frank Nägler
Browse files

Revert "[TASK] Massive performance improvement for page tree"

This patch needs to be reverted, because of a regression with
the page tree and the double click behavior.

Releases: master
Resolves: #66912
Resolves: #67322
Reverts: #63591

This reverts commit a89d3765.

Change-Id: I35b9d80f25fa1f2f3951bf70bbbe9e02dafdc28d
Reviewed-on: http://review.typo3.org/40154


Reviewed-by: Wouter Wolters's avatarWouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters's avatarWouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Frank Nägler's avatarFrank Nägler <frank.naegler@typo3.org>
Tested-by: Frank Nägler's avatarFrank Nägler <frank.naegler@typo3.org>
parent ec2b4f42
......@@ -173,23 +173,25 @@ TYPO3.Components.PageTree.Tree = Ext.extend(Ext.tree.TreePanel, {
listeners: {
// single click handler that only triggers after a delay to let the double click event
// a possibility to be executed (needed for label edit)
dblclick: {
fn: function(node, event) {
this.triggerEdit(node);
}
},
click: {
fn: function(node, event) {
if (this.clicksRegistered === 2) {
this.clicksRegistered = 0;
event.stopEvent();
return false;
}
this.clicksRegistered = 0;
if (this.commandProvider.singleClick) {
this.commandProvider.singleClick(node, this);
}
}
},
delay: 400
},
// prevent the expanding / collapsing on double click
beforedblclick: {
fn: function(node, event) {
fn: function() {
return false;
}
},
......
......@@ -35,7 +35,7 @@ TYPO3.Components.PageTree.TreeEditor = Ext.extend(Ext.tree.TreeEditor, {
*
* @type {int}
*/
editDelay: 0,
editDelay: 250,
/**
* Indicates if an underlying shadow should be shown
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment