diff --git a/apps/documenteditor/main/app/view/Toolbar.js b/apps/documenteditor/main/app/view/Toolbar.js index cd80ec182..883e3192a 100644 --- a/apps/documenteditor/main/app/view/Toolbar.js +++ b/apps/documenteditor/main/app/view/Toolbar.js @@ -1151,22 +1151,6 @@ define([ ] } ); - Common.NotificationCenter.on('tab:visible', _.bind(function(action, visible){ - if (action=='plugins' && visible) { - var compactview = false; - if ( Common.localStorage.itemExists("de-compact-toolbar") ) { - compactview = Common.localStorage.getBool("de-compact-toolbar"); - } else if ( config.customization && config.customization.compactToolbar ) - compactview = true; - - if (!compactview) { - me.setFolded(false); - me.setTab('plugins'); - me.fireEvent('view:compact', [me, compactview]); - Common.NotificationCenter.trigger('layout:changed', 'toolbar'); - } - } - }, this)); } return this; }, diff --git a/apps/presentationeditor/main/app/view/Toolbar.js b/apps/presentationeditor/main/app/view/Toolbar.js index 49b7e3ebf..e8ead7172 100644 --- a/apps/presentationeditor/main/app/view/Toolbar.js +++ b/apps/presentationeditor/main/app/view/Toolbar.js @@ -795,22 +795,6 @@ define([ ] } ); - Common.NotificationCenter.on('tab:visible', _.bind(function(action, visible){ - if (action=='plugins' && visible) { - var compactview = false; - if ( Common.localStorage.itemExists("pe-compact-toolbar") ) { - compactview = Common.localStorage.getBool("pe-compact-toolbar"); - } else if ( config.customization && config.customization.compactToolbar ) - compactview = true; - - if (!compactview) { - me.setFolded(false); - me.setTab('plugins'); - me.fireEvent('view:compact', [me, compactview]); - Common.NotificationCenter.trigger('layout:changed', 'toolbar'); - } - } - }, this)); } return this; diff --git a/apps/spreadsheeteditor/main/app/view/Toolbar.js b/apps/spreadsheeteditor/main/app/view/Toolbar.js index 8b12e5afa..2ad437e27 100644 --- a/apps/spreadsheeteditor/main/app/view/Toolbar.js +++ b/apps/spreadsheeteditor/main/app/view/Toolbar.js @@ -1446,22 +1446,6 @@ define([ ] } ); - Common.NotificationCenter.on('tab:visible', _.bind(function(action, visible){ - if (action=='plugins' && visible) { - var compactview = false; - if ( Common.localStorage.itemExists("sse-compact-toolbar") ) { - compactview = Common.localStorage.getBool("sse-compact-toolbar"); - } else if ( config.customization && config.customization.compactToolbar ) - compactview = true; - - if (!compactview) { - me.setFolded(false); - me.setTab('plugins'); - me.fireEvent('view:compact', [me, compactview]); - Common.NotificationCenter.trigger('layout:changed', 'toolbar'); - } - } - }, this)); } if (config.isEdit) {