Commit 6f96e284 authored by Julia Radzhabova's avatar Julia Radzhabova

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

parent 26f5a91f
......@@ -831,7 +831,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();
if (!this.appOptions.isEdit) {
this.hidePreloader();
......
......@@ -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();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment