mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-24 01:13:22 +08:00
[DE PE SSE] Fix bug 65228
This commit is contained in:
@ -245,6 +245,25 @@ define([
|
||||
|
||||
this.setMoreButton();
|
||||
},
|
||||
|
||||
isPluginButtonPressed: function () {
|
||||
var pressed = false;
|
||||
for (var i=0; i<this.buttons.length; i++) {
|
||||
if (this.buttons[i].options.type === 'plugin' && this.buttons[i].pressed) {
|
||||
pressed = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
return pressed;
|
||||
},
|
||||
|
||||
togglePluginButtons: function (toggle) {
|
||||
for (var i=0; i<this.buttons.length; i++) {
|
||||
if (this.buttons[i].options.type === 'plugin' && this.buttons[i].pressed) {
|
||||
this.buttons[i].toggle(toggle, true);
|
||||
}
|
||||
}
|
||||
},
|
||||
}
|
||||
}()));
|
||||
});
|
||||
|
||||
@ -847,7 +847,7 @@ define([
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (this.leftMenu.btnAbout.pressed || $(e.target).parents('#left-menu').length ) {
|
||||
if (this.leftMenu.btnAbout.pressed || this.leftMenu.isPluginButtonPressed() || $(e.target).parents('#left-menu').length ) {
|
||||
if (!Common.UI.HintManager.isHintVisible()) {
|
||||
this.leftMenu.close();
|
||||
Common.NotificationCenter.trigger('layout:changed', 'leftmenu');
|
||||
|
||||
@ -320,6 +320,7 @@ define([
|
||||
this.panelThumbnails['hide']();
|
||||
this.btnThumbnails.toggle(false, true);
|
||||
}
|
||||
this.togglePluginButtons(false);
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
@ -769,8 +769,7 @@ define([
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (this.leftMenu.btnAbout.pressed || this.leftMenu.btnPlugins.pressed ||
|
||||
$(e.target).parents('#left-menu').length ) {
|
||||
if (this.leftMenu.btnAbout.pressed || this.leftMenu.isPluginButtonPressed() || $(e.target).parents('#left-menu').length ) {
|
||||
if (!Common.UI.HintManager.isHintVisible()) {
|
||||
this.leftMenu.close();
|
||||
Common.NotificationCenter.trigger('layout:changed', 'leftmenu');
|
||||
|
||||
@ -316,6 +316,7 @@ define([
|
||||
this.panelThumbnails['hide']();
|
||||
this.btnThumbnails.toggle(false, true);
|
||||
}
|
||||
this.togglePluginButtons(false);
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
@ -675,7 +675,7 @@ define([
|
||||
}
|
||||
}
|
||||
|
||||
if ( this.leftMenu.btnAbout.pressed || $(e.target).parents('#left-menu').length ) {
|
||||
if ( this.leftMenu.btnAbout.pressed || this.leftMenu.isPluginButtonPressed() || $(e.target).parents('#left-menu').length ) {
|
||||
if (!Common.UI.HintManager.isHintVisible()) {
|
||||
this.leftMenu.close();
|
||||
Common.NotificationCenter.trigger('layout:changed', 'leftmenu');
|
||||
|
||||
@ -289,6 +289,7 @@ define([
|
||||
this.btnSearchBar.toggle(false, true);
|
||||
}
|
||||
this.fireEvent('panel:show', [this, '', false]);
|
||||
this.togglePluginButtons(false);
|
||||
},
|
||||
|
||||
isOpened: function() {
|
||||
|
||||
@ -831,7 +831,7 @@ define([
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if ( this.leftMenu.btnAbout.pressed ||
|
||||
if ( this.leftMenu.btnAbout.pressed || this.leftMenu.isPluginButtonPressed() ||
|
||||
($(e.target).parents('#left-menu').length || this.leftMenu.btnComments.pressed) && this.api.isCellEdited!==true) {
|
||||
if (!Common.UI.HintManager.isHintVisible()) {
|
||||
this.leftMenu.close();
|
||||
|
||||
@ -273,6 +273,7 @@ define([
|
||||
this.panelSearch['hide']();
|
||||
this.btnSearchBar.toggle(false, true);
|
||||
}
|
||||
this.togglePluginButtons(false);
|
||||
},
|
||||
|
||||
isOpened: function() {
|
||||
|
||||
Reference in New Issue
Block a user