From b33382fb673ef0534a3bef5b66d04b6a48155d17 Mon Sep 17 00:00:00 2001 From: Maxim Kadushkin Date: Fri, 18 May 2018 12:59:01 +0300 Subject: [PATCH] [All] debug of compact toolbar --- apps/documenteditor/main/app/controller/Toolbar.js | 6 ++++-- apps/presentationeditor/main/app/controller/Toolbar.js | 6 ++++-- apps/spreadsheeteditor/main/app/controller/Toolbar.js | 6 ++++-- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/apps/documenteditor/main/app/controller/Toolbar.js b/apps/documenteditor/main/app/controller/Toolbar.js index 5239dd925..4c78a6a9e 100644 --- a/apps/documenteditor/main/app/controller/Toolbar.js +++ b/apps/documenteditor/main/app/controller/Toolbar.js @@ -2792,8 +2792,10 @@ define([ }, onFileMenu: function (opts) { - if ( opts == 'show' ) {} - else { + if ( opts == 'show' ) { + if ( !this.toolbar.isTabActive('file') ) + this.toolbar.setTab('file'); + } else { if ( this.toolbar.isTabActive('file') ) this.toolbar.setTab(); } diff --git a/apps/presentationeditor/main/app/controller/Toolbar.js b/apps/presentationeditor/main/app/controller/Toolbar.js index 79dd28c62..0bc0bb058 100644 --- a/apps/presentationeditor/main/app/controller/Toolbar.js +++ b/apps/presentationeditor/main/app/controller/Toolbar.js @@ -2065,8 +2065,10 @@ define([ }, onFileMenu: function (opts) { - if ( opts == 'show' ) {} - else { + if ( opts == 'show' ) { + if ( !this.toolbar.isTabActive('file') ) + this.toolbar.setTab('file'); + } else { if ( this.toolbar.isTabActive('file') ) this.toolbar.setTab(); } diff --git a/apps/spreadsheeteditor/main/app/controller/Toolbar.js b/apps/spreadsheeteditor/main/app/controller/Toolbar.js index 7e8d8c0d3..a51b8a8d6 100644 --- a/apps/spreadsheeteditor/main/app/controller/Toolbar.js +++ b/apps/spreadsheeteditor/main/app/controller/Toolbar.js @@ -3035,8 +3035,10 @@ define([ }, onFileMenu: function (opts) { - if ( opts == 'show' ) {} - else { + if ( opts == 'show' ) { + if ( !this.toolbar.isTabActive('file') ) + this.toolbar.setTab('file'); + } else { if ( this.toolbar.isTabActive('file') ) this.toolbar.setTab(); }