Bug #30352 » typo3_30352.patch
typo3_src-4.6.4/t3lib/js/extjs/components/pagetree/javascript/Ext.ux.state.TreePanel.js 2012-01-26 21:26:47.000000000 +0100 | ||
---|---|---|
}
|
||
}
|
||
}
|
||
// @TODO this code misses an automatic expansion of the tree
|
||
// to the last selected node
|
||
if (this.stateHash['lastSelectedNode']) {
|
||
var node = this.getNodeById(this.stateHash['lastSelectedNode']);
|
||
if (node) {
|
||
this.selectPath(node.getPath());
|
||
var contentId = TYPO3.Backend.ContentContainer.getIdFromUrl() ||
|
||
String(fsMod.recentIds['web']) || '-1';
|
||
var hasContentFrameValidPageId = (contentId !== '-1' && contentId !== '0');
|
||
var isCurrentSelectedNode = (
|
||
String(node.attributes.nodeData.id) === contentId ||
|
||
contentId.indexOf('pages' + String(node.attributes.nodeData.id)) !== -1
|
||
);
|
||
if (contentId !== '-1' && !isCurrentSelectedNode && this.app.isVisible() &&
|
||
this.commandProvider && this.commandProvider.singleClick
|
||
) {
|
||
if (isCurrentSelectedNode) {
|
||
this.selectPath(node.getPath());
|
||
}
|
||
var isSingleClickPossible = (this.app.isVisible() && this.commandProvider && this.commandProvider.singleClick);
|
||
if (!hasContentFrameValidPageId && !isCurrentSelectedNode && isSingleClickPossible) {
|
||
this.selectPath(node.getPath());
|
||
this.commandProvider.singleClick(node, this);
|
||
}
|
||
}
|
- « Previous
- 1
- 2
- Next »