mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-04-07 14:06:16 +08:00
Fix plugin's window
This commit is contained in:
@ -2405,7 +2405,10 @@ define([
|
||||
},
|
||||
|
||||
onPluginToolbarMenu: function(data) {
|
||||
this.toolbar && Array.prototype.push.apply(this.toolbar.lockControls, Common.UI.LayoutManager.addCustomControls(this.toolbar, data));
|
||||
var api = this.api;
|
||||
this.toolbar && Array.prototype.push.apply(this.toolbar.lockControls, Common.UI.LayoutManager.addCustomControls(this.toolbar, data, function(guid, value, pressed) {
|
||||
api && api.onPluginToolbarMenuItemClick(guid, value, pressed);
|
||||
}));
|
||||
},
|
||||
|
||||
onPluginToolbarCustomMenuItems: function(action, data) {
|
||||
|
||||
@ -2967,7 +2967,10 @@ define([
|
||||
},
|
||||
|
||||
onPluginToolbarMenu: function(data) {
|
||||
this.toolbar && Array.prototype.push.apply(this.toolbar.lockControls, Common.UI.LayoutManager.addCustomControls(this.toolbar, data));
|
||||
var api = this.api;
|
||||
this.toolbar && Array.prototype.push.apply(this.toolbar.lockControls, Common.UI.LayoutManager.addCustomControls(this.toolbar, data, function(guid, value, pressed) {
|
||||
api && api.onPluginToolbarMenuItemClick(guid, value, pressed);
|
||||
}));
|
||||
},
|
||||
|
||||
onPluginToolbarCustomMenuItems: function(action, data) {
|
||||
|
||||
@ -5218,7 +5218,10 @@ define([
|
||||
},
|
||||
|
||||
onPluginToolbarMenu: function(data) {
|
||||
this.toolbar && Array.prototype.push.apply(this.toolbar.lockControls, Common.UI.LayoutManager.addCustomControls(this.toolbar, data));
|
||||
var api = this.api;
|
||||
this.toolbar && Array.prototype.push.apply(this.toolbar.lockControls, Common.UI.LayoutManager.addCustomControls(this.toolbar, data, function(guid, value, pressed) {
|
||||
api && api.onPluginToolbarMenuItemClick(guid, value, pressed);
|
||||
}));
|
||||
},
|
||||
|
||||
onPluginToolbarCustomMenuItems: function(action, data) {
|
||||
|
||||
@ -346,7 +346,10 @@ define([
|
||||
},
|
||||
|
||||
onPluginToolbarMenu: function(data) {
|
||||
this.toolbar && Array.prototype.push.apply(this.toolbar.lockControls, Common.UI.LayoutManager.addCustomControls(this.toolbar, data));
|
||||
var api = this.api;
|
||||
this.toolbar && Array.prototype.push.apply(this.toolbar.lockControls, Common.UI.LayoutManager.addCustomControls(this.toolbar, data, function(guid, value, pressed) {
|
||||
api && api.onPluginToolbarMenuItemClick(guid, value, pressed);
|
||||
}));
|
||||
},
|
||||
|
||||
onPluginToolbarCustomMenuItems: function(action, data) {
|
||||
|
||||
Reference in New Issue
Block a user