mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-02-10 18:05:32 +08:00
Fix Bug 78016: fix plugins in the right panel (different themes, selecting objects)
This commit is contained in:
@ -274,7 +274,7 @@ define([
|
||||
Common.localStorage.setItem("pdfe-hide-right-settings", 0);
|
||||
Common.Utils.InternalSettings.set("pdfe-hide-right-settings", false);
|
||||
}
|
||||
target_pane_parent.find('.settings-panel.active').removeClass('active');
|
||||
target_pane_parent.find('.content-box > .active').removeClass('active');
|
||||
target_pane && target_pane.addClass("active");
|
||||
|
||||
if (this.scroller) {
|
||||
@ -288,7 +288,6 @@ define([
|
||||
Common.Utils.InternalSettings.set("pdfe-hide-right-settings", true);
|
||||
}
|
||||
|
||||
!isPlugin && $('.right-panel .plugin-panel').toggleClass('active', false);
|
||||
btn && !isPlugin && this.fireEvent('rightmenuclick', [this, btn.options.asctype, this.minimizedMode, e]);
|
||||
},
|
||||
|
||||
@ -301,7 +300,7 @@ define([
|
||||
} else {
|
||||
var target_pane = $("#" + this._settings[type].panel );
|
||||
if ( !target_pane.hasClass('active') ) {
|
||||
target_pane.parent().find('.settings-panel.active').removeClass('active');
|
||||
target_pane.parent().find('> .active').removeClass('active');
|
||||
target_pane.addClass("active");
|
||||
if (this.scroller) {
|
||||
this.scroller.update();
|
||||
@ -320,7 +319,7 @@ define([
|
||||
|
||||
clearSelection: function() {
|
||||
var target_pane = $(".right-panel");
|
||||
target_pane.find('.settings-panel.active').removeClass('active');
|
||||
target_pane.find('.content-box > .active').removeClass('active');
|
||||
this._settings.forEach(function(item){
|
||||
if (item.btn.isActive())
|
||||
item.btn.toggle(false, true);
|
||||
@ -343,6 +342,10 @@ define([
|
||||
Common.UI.SideMenu.prototype.setButtons.apply(this, [allButtons]);
|
||||
},
|
||||
|
||||
insertPanel: function ($panel) {
|
||||
this.$el.find('.side-panel .content-box').append($panel);
|
||||
},
|
||||
|
||||
updateWidth: function() {
|
||||
var pane = $(this.el).find('.right-panel'),
|
||||
paddings = parseInt(pane.css('padding-left')) + parseInt(pane.css('padding-right'));
|
||||
|
||||
Reference in New Issue
Block a user