Change isModal parameter for plugins config: show modal/non-modal dialog

This commit is contained in:
Julia Radzhabova 2021-04-16 15:59:52 +03:00
parent e403257024
commit d6ffb6006b
2 changed files with 5 additions and 3 deletions

View file

@ -382,7 +382,8 @@ define([
isCustomWindow = variation.get_CustomWindow(),
arrBtns = variation.get_Buttons(),
newBtns = [],
size = variation.get_Size();
size = variation.get_Size(),
isModal = variation.get_Modal();
if (!size || size.length<2) size = [800, 600];
if (_.isArray(arrBtns)) {
@ -403,7 +404,8 @@ define([
frameId : frameId,
buttons: isCustomWindow ? undefined : newBtns,
toolcallback: _.bind(this.onToolClose, this),
help: !!help
help: !!help,
modal: isModal!==undefined ? isModal : true
});
me.pluginDlg.on({
'render:after': function(obj){

View file

@ -61,7 +61,7 @@ define([
EditorsSupport: ["word", "cell", "slide"],
isVisual: false,
isCustomWindow: false,
isModal: false,
isModal: true,
isInsideMode: false,
initDataType: 0,
initData: "",