[BUGFIX] Frontent preview - Hide slider & visual-mode-options in "List-view"
authorMichael Klapper <michael.klapper@aoemedia.de>
Mon, 30 May 2011 14:15:39 +0000 (16:15 +0200)
committerMichael Klapper <michael.klapper@aoemedia.de>
Mon, 30 May 2011 14:15:39 +0000 (16:15 +0200)
Change-Id: I33425a023b6d7032f82c29415168e287116fd8eb
Resolves: #27143
Releases: 4.6, 4.5

typo3/sysext/workspaces/Resources/Public/JavaScript/preview.js

index 8c84457..34e2e86 100644 (file)
@@ -161,6 +161,14 @@ Ext.onReady(function() {
                                id: 'wsVisual',
                                layout: 'fit',
                                anchor: '100% 100%',
+                               listeners: {
+                                       activate: function () {
+                                               if (Ext.isObject(top.Ext.getCmp('slider'))) {
+                                                       top.Ext.getCmp('slider').show();
+                                                       top.Ext.getCmp('visual-mode-options').show();
+                                               }
+                                       }
+                               },
                                items: [{
                                        layout: 'absolute',
                                        anchor: '100% 100%',
@@ -264,6 +272,12 @@ Ext.onReady(function() {
                                title: TYPO3.LLL.Workspaces.listView,
                                id: 'wsSettings',
                                layout: 'fit',
+                               listeners: {
+                                       activate: function () {
+                                               top.Ext.getCmp('slider').hide();
+                                               top.Ext.getCmp('visual-mode-options').hide();
+                                       }
+                               },
                                items:  [{
                                        xtype: 'iframePanel',
                                        id: 'settingsPanel',