[SSE] Don't use asc_LoadEmptyDocument (fix offline mode for desktop in sdk).
This commit is contained in:
parent
dcf80f9ba0
commit
08702f0a55
|
@ -844,7 +844,7 @@ define([
|
|||
|
||||
this.api.asc_setViewMode(!this.appOptions.isEdit && !this.appOptions.canComments);
|
||||
(!this.appOptions.isEdit && this.appOptions.canComments) && this.api.asc_setRestriction(Asc.c_oAscRestrictionType.OnlyComments);
|
||||
(this.appOptions.isEditMailMerge || this.appOptions.isEditDiagram) ? this.api.asc_LoadEmptyDocument() : this.api.asc_LoadDocument();
|
||||
this.api.asc_LoadDocument();
|
||||
},
|
||||
|
||||
applyModeCommonElements: function() {
|
||||
|
|
|
@ -629,7 +629,7 @@ define([
|
|||
me.applyModeEditorElements();
|
||||
|
||||
me.api.asc_setViewMode(!me.appOptions.isEdit);
|
||||
(me.appOptions.isEditMailMerge || me.appOptions.isEditDiagram) ? me.api.asc_LoadEmptyDocument() : me.api.asc_LoadDocument();
|
||||
me.api.asc_LoadDocument();
|
||||
|
||||
if (!me.appOptions.isEdit) {
|
||||
me.hidePreloader();
|
||||
|
|
Loading…
Reference in a new issue