Merge pull request #942 from ONLYOFFICE/feature/Bug_50794
Fix Bug 50794
This commit is contained in:
commit
5fee8bdb34
|
@ -33,7 +33,7 @@ class DownloadController extends Component {
|
||||||
() => {
|
() => {
|
||||||
if (format == Asc.c_oAscFileType.TXT) {
|
if (format == Asc.c_oAscFileType.TXT) {
|
||||||
const isDocReady = this.props.storeAppOptions.isDocReady;
|
const isDocReady = this.props.storeAppOptions.isDocReady;
|
||||||
onAdvancedOptions(Asc.c_oAscAdvancedOptionsID.TXT, api.asc_getAdvancedOptions(), 2, new Asc.asc_CDownloadOptions(format), _t, isDocReady, isDRM);
|
onAdvancedOptions(Asc.c_oAscAdvancedOptionsID.TXT, api.asc_getAdvancedOptions(), 2, new Asc.asc_CDownloadOptions(format), _t, isDocReady);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
|
|
@ -300,6 +300,7 @@ class MainController extends Component {
|
||||||
this.api.asc_registerCallback('asc_onDocumentContentReady', this.onDocumentContentReady.bind(this));
|
this.api.asc_registerCallback('asc_onDocumentContentReady', this.onDocumentContentReady.bind(this));
|
||||||
this.api.asc_registerCallback('asc_onDocumentUpdateVersion', this.onUpdateVersion.bind(this));
|
this.api.asc_registerCallback('asc_onDocumentUpdateVersion', this.onUpdateVersion.bind(this));
|
||||||
this.api.asc_registerCallback('asc_onServerVersion', this.onServerVersion.bind(this));
|
this.api.asc_registerCallback('asc_onServerVersion', this.onServerVersion.bind(this));
|
||||||
|
this.api.asc_registerCallback('asc_onAdvancedOptions', this.onAdvancedOptions.bind(this));
|
||||||
this.api.asc_registerCallback('asc_onDocumentName', this.onDocumentName.bind(this));
|
this.api.asc_registerCallback('asc_onDocumentName', this.onDocumentName.bind(this));
|
||||||
this.api.asc_registerCallback('asc_onPrintUrl', this.onPrintUrl.bind(this));
|
this.api.asc_registerCallback('asc_onPrintUrl', this.onPrintUrl.bind(this));
|
||||||
this.api.asc_registerCallback('asc_onPrint', this.onPrint.bind(this));
|
this.api.asc_registerCallback('asc_onPrint', this.onPrint.bind(this));
|
||||||
|
@ -309,10 +310,6 @@ class MainController extends Component {
|
||||||
|
|
||||||
const storePresentationSettings = this.props.storePresentationSettings;
|
const storePresentationSettings = this.props.storePresentationSettings;
|
||||||
|
|
||||||
this.api.asc_registerCallback('asc_onAdvancedOptions', (type, advOptions) => {
|
|
||||||
this.onAdvancedOptions(type, advOptions);
|
|
||||||
});
|
|
||||||
|
|
||||||
this.api.asc_registerCallback('asc_onPresentationSize', (width, height) => {
|
this.api.asc_registerCallback('asc_onPresentationSize', (width, height) => {
|
||||||
storePresentationSettings.changeSizeIndex(width, height);
|
storePresentationSettings.changeSizeIndex(width, height);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue