[SSE] Don't use asc_LoadEmptyDocument (fix offline mode for desktop in sdk).

This commit is contained in:
Julia Radzhabova 2017-10-26 15:09:58 +03:00
parent dcf80f9ba0
commit 08702f0a55
2 changed files with 2 additions and 2 deletions

View file

@ -844,7 +844,7 @@ define([
this.api.asc_setViewMode(!this.appOptions.isEdit && !this.appOptions.canComments); 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.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() { applyModeCommonElements: function() {

View file

@ -629,7 +629,7 @@ define([
me.applyModeEditorElements(); me.applyModeEditorElements();
me.api.asc_setViewMode(!me.appOptions.isEdit); 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) { if (!me.appOptions.isEdit) {
me.hidePreloader(); me.hidePreloader();