Fixed bug #17204: Pagetree: Only call the singleClick method if the navigation compon...
authorSusanne Moog <typo3@susannemoog.de>
Sat, 22 Jan 2011 12:23:19 +0000 (12:23 +0000)
committerSusanne Moog <typo3@susannemoog.de>
Sat, 22 Jan 2011 12:23:19 +0000 (12:23 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@10245 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/js/extjs/components/pagetree/javascript/Ext.ux.state.TreePanel.js
t3lib/js/extjs/components/pagetree/javascript/app.js
t3lib/js/extjs/components/pagetree/javascript/tree.js

index 196eb67..424792e 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
 2011-01-22  Susann Moog  <typo3@susanne-moog.de>
 
        * Fixed bug #17091: Pagetree: undelete recursive deleted pages only undeletes the top node, not the other child nodes of the deleted page (Thanks to Stefan Galinski)
+       * Fixed bug #17204: Pagetree: Only call the singleClick method if the navigation component is visible (Thanks to Stefan Galinski)
 
 2011-01-22  Steffen Gebert  <steffen@steffen-gebert.de>
 
index 66dee6e..16b1f92 100644 (file)
@@ -108,7 +108,7 @@ Ext.override(Ext.ux.state.TreePanel, {
                                                        contentId.indexOf('pages' + String(node.attributes.nodeData.id)) !== -1
                                                );
 
-                                               if (contentId !== '-1' && !isCurrentSelectedNode &&
+                                               if (contentId !== '-1' && !isCurrentSelectedNode && this.app.isVisible() &&
                                                        this.commandProvider && this.commandProvider.singleClick
                                                ) {
                                                        this.commandProvider.singleClick(node, this);
index 389007c..1c2489d 100644 (file)
@@ -107,6 +107,7 @@ TYPO3.Components.PageTree.App = Ext.extend(Ext.Panel, {
                                commandProvider: TYPO3.Components.PageTree.Actions,
                                contextMenuProvider: TYPO3.Components.PageTree.ContextMenuDataProvider,
                                treeDataProvider: TYPO3.Components.PageTree.DataProvider,
+                               app: this,
                                listeners: {
                                        resize: {
                                                fn: function() {
@@ -128,7 +129,8 @@ TYPO3.Components.PageTree.App = Ext.extend(Ext.Panel, {
                                autoHeight: false,
                                commandProvider: TYPO3.Components.PageTree.Actions,
                                contextMenuProvider: TYPO3.Components.PageTree.ContextMenuDataProvider,
-                               treeDataProvider: TYPO3.Components.PageTree.DataProvider
+                               treeDataProvider: TYPO3.Components.PageTree.DataProvider,
+                               app: this
                        }).hide();
 
                        var topPanel = new TYPO3.Components.PageTree.TopPanel({
index 33550e3..06c695c 100644 (file)
@@ -106,6 +106,13 @@ TYPO3.Components.PageTree.Tree = Ext.extend(Ext.tree.TreePanel, {
        deletionDropZoneId: '',
 
        /**
+        * Main applicaton
+        * 
+        * @cfg {TYPO3.Components.PageTree.App}
+        */
+       app: null,
+
+       /**
         * Root Node Configuration
         *
         * @type {Object}