Change isModal parameter for plugins config: show modal/non-modal dialog
This commit is contained in:
parent
e403257024
commit
d6ffb6006b
|
@ -382,7 +382,8 @@ define([
|
||||||
isCustomWindow = variation.get_CustomWindow(),
|
isCustomWindow = variation.get_CustomWindow(),
|
||||||
arrBtns = variation.get_Buttons(),
|
arrBtns = variation.get_Buttons(),
|
||||||
newBtns = [],
|
newBtns = [],
|
||||||
size = variation.get_Size();
|
size = variation.get_Size(),
|
||||||
|
isModal = variation.get_Modal();
|
||||||
if (!size || size.length<2) size = [800, 600];
|
if (!size || size.length<2) size = [800, 600];
|
||||||
|
|
||||||
if (_.isArray(arrBtns)) {
|
if (_.isArray(arrBtns)) {
|
||||||
|
@ -403,7 +404,8 @@ define([
|
||||||
frameId : frameId,
|
frameId : frameId,
|
||||||
buttons: isCustomWindow ? undefined : newBtns,
|
buttons: isCustomWindow ? undefined : newBtns,
|
||||||
toolcallback: _.bind(this.onToolClose, this),
|
toolcallback: _.bind(this.onToolClose, this),
|
||||||
help: !!help
|
help: !!help,
|
||||||
|
modal: isModal!==undefined ? isModal : true
|
||||||
});
|
});
|
||||||
me.pluginDlg.on({
|
me.pluginDlg.on({
|
||||||
'render:after': function(obj){
|
'render:after': function(obj){
|
||||||
|
|
|
@ -61,7 +61,7 @@ define([
|
||||||
EditorsSupport: ["word", "cell", "slide"],
|
EditorsSupport: ["word", "cell", "slide"],
|
||||||
isVisual: false,
|
isVisual: false,
|
||||||
isCustomWindow: false,
|
isCustomWindow: false,
|
||||||
isModal: false,
|
isModal: true,
|
||||||
isInsideMode: false,
|
isInsideMode: false,
|
||||||
initDataType: 0,
|
initDataType: 0,
|
||||||
initData: "",
|
initData: "",
|
||||||
|
|
Loading…
Reference in a new issue