[DE SSE PE] extended request to close editor
This commit is contained in:
parent
5ee0e20d74
commit
7dced037a3
|
@ -70,6 +70,11 @@ define([
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
},
|
||||||
|
requestClose: function () {
|
||||||
|
if ( config.isDesktopApp && !!app ) {
|
||||||
|
app.execCommand('editor:request', 'close');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -1924,8 +1924,10 @@ define([
|
||||||
me.api.asc_setAdvancedOptions(type, new Asc.asc_CDRMAdvancedOptions(value));
|
me.api.asc_setAdvancedOptions(type, new Asc.asc_CDRMAdvancedOptions(value));
|
||||||
me.loadMask && me.loadMask.show();
|
me.loadMask && me.loadMask.show();
|
||||||
}
|
}
|
||||||
} else
|
} else {
|
||||||
Common.Gateway.requestClose();
|
Common.Gateway.requestClose();
|
||||||
|
Common.Controllers.Desktop.requestClose();
|
||||||
|
}
|
||||||
me._state.openDlg = null;
|
me._state.openDlg = null;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -1767,8 +1767,10 @@ define([
|
||||||
me.api.asc_setAdvancedOptions(type, new Asc.asc_CDRMAdvancedOptions(value));
|
me.api.asc_setAdvancedOptions(type, new Asc.asc_CDRMAdvancedOptions(value));
|
||||||
me.loadMask && me.loadMask.show();
|
me.loadMask && me.loadMask.show();
|
||||||
}
|
}
|
||||||
} else
|
} else {
|
||||||
Common.Gateway.requestClose();
|
Common.Gateway.requestClose();
|
||||||
|
Common.Controllers.Desktop.requestClose();
|
||||||
|
}
|
||||||
me._state.openDlg = null;
|
me._state.openDlg = null;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -1590,8 +1590,10 @@ define([
|
||||||
me.api.asc_setAdvancedOptions(type, new Asc.asc_CDRMAdvancedOptions(value));
|
me.api.asc_setAdvancedOptions(type, new Asc.asc_CDRMAdvancedOptions(value));
|
||||||
me.loadMask && me.loadMask.show();
|
me.loadMask && me.loadMask.show();
|
||||||
}
|
}
|
||||||
} else
|
} else {
|
||||||
Common.Gateway.requestClose();
|
Common.Gateway.requestClose();
|
||||||
|
Common.Controllers.Desktop.requestClose();
|
||||||
|
}
|
||||||
me._state.openDlg = null;
|
me._state.openDlg = null;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue