Commit 61894ae2 authored by Alexey Golubev's avatar Alexey Golubev Committed by GitHub

Merge pull request #95 from ONLYOFFICE/feature/pre5.0.3

[SSE] Don't use asc_LoadEmptyDocument (fix offline mode for desktop i…
parents c5dc5ebf 6f96e284
...@@ -831,7 +831,7 @@ define([ ...@@ -831,7 +831,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();
if (!this.appOptions.isEdit) { if (!this.appOptions.isEdit) {
this.hidePreloader(); this.hidePreloader();
......
...@@ -629,7 +629,7 @@ define([ ...@@ -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();
......
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