Merge pull request #471 from ONLYOFFICE/fix/bugfix

Fix/bugfix
This commit is contained in:
Julia Radzhabova 2020-08-18 19:32:10 +03:00 committed by GitHub
commit ce7e5eb5a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 4 deletions

View file

@ -61,7 +61,7 @@ define([
};
function onTabDblclick(e) {
var tab = $(e.target).data('tab');
var tab = $(e.currentTarget).find('> a[data-tab]').data('tab');
if ( this.dblclick_el == tab )
this.fireEvent('change:compact', [tab]);
}
@ -235,7 +235,6 @@ define([
onTabClick: function (e) {
var me = this;
var $target = $(e.currentTarget);
var tab = $target.find('> a[data-tab]').data('tab');
var islone = $target.hasClass('x-lone');
@ -245,8 +244,12 @@ define([
// me.fireEvent('')
} else
if ( $target.hasClass('active') ) {
me.collapse();
!me._timerSetTab && me.collapse();
} else {
me._timerSetTab = true;
setTimeout(function(){
me._timerSetTab = false;
}, 500);
me.setTab(tab);
me.processPanelVisible(null, true);
}

View file

@ -1701,7 +1701,7 @@ define([
documentHolder.mnuChartEdit.chartInfo = elValue;
ischartmenu = true;
has_chartprops = true;
} if ( elValue.asc_getSlicerProperties() ) {
} else if ( elValue.asc_getSlicerProperties() ) {
documentHolder.mnuSlicerAdvanced.imageInfo = elValue;
isslicermenu = true;
} else {