[All] debug of compact toolbar

This commit is contained in:
Maxim Kadushkin 2018-05-18 12:59:01 +03:00
parent 0523524829
commit b33382fb67
3 changed files with 12 additions and 6 deletions

View file

@ -2792,8 +2792,10 @@ define([
}, },
onFileMenu: function (opts) { onFileMenu: function (opts) {
if ( opts == 'show' ) {} if ( opts == 'show' ) {
else { if ( !this.toolbar.isTabActive('file') )
this.toolbar.setTab('file');
} else {
if ( this.toolbar.isTabActive('file') ) if ( this.toolbar.isTabActive('file') )
this.toolbar.setTab(); this.toolbar.setTab();
} }

View file

@ -2065,8 +2065,10 @@ define([
}, },
onFileMenu: function (opts) { onFileMenu: function (opts) {
if ( opts == 'show' ) {} if ( opts == 'show' ) {
else { if ( !this.toolbar.isTabActive('file') )
this.toolbar.setTab('file');
} else {
if ( this.toolbar.isTabActive('file') ) if ( this.toolbar.isTabActive('file') )
this.toolbar.setTab(); this.toolbar.setTab();
} }

View file

@ -3035,8 +3035,10 @@ define([
}, },
onFileMenu: function (opts) { onFileMenu: function (opts) {
if ( opts == 'show' ) {} if ( opts == 'show' ) {
else { if ( !this.toolbar.isTabActive('file') )
this.toolbar.setTab('file');
} else {
if ( this.toolbar.isTabActive('file') ) if ( this.toolbar.isTabActive('file') )
this.toolbar.setTab(); this.toolbar.setTab();
} }