Commit f75370f2 authored by Alexander.Trofimov's avatar Alexander.Trofimov

_OfflineAppDocumentStartLoad() after load sdk-all

parent 5b49f338
...@@ -136,6 +136,11 @@ baseEditorsApi.prototype._init = function() { ...@@ -136,6 +136,11 @@ baseEditorsApi.prototype._init = function() {
AscCommon.loadSdk(this._editorNameById(), function() { AscCommon.loadSdk(this._editorNameById(), function() {
t.isLoadFullApi = true; t.isLoadFullApi = true;
if (offlineMode === t.documentUrl) {
t._OfflineAppDocumentStartLoad();
}
t._onEndLoadSdk(); t._onEndLoadSdk();
t.onEndLoadFile(null); t.onEndLoadFile(null);
}); });
...@@ -312,7 +317,6 @@ baseEditorsApi.prototype.asc_LoadDocument = function(isVersionHistory) { ...@@ -312,7 +317,6 @@ baseEditorsApi.prototype.asc_LoadDocument = function(isVersionHistory) {
if (offlineMode === this.documentUrl) { if (offlineMode === this.documentUrl) {
this.documentUrl = '/sdkjs/' + this._editorNameById() + '/document/'; this.documentUrl = '/sdkjs/' + this._editorNameById() + '/document/';
this.DocInfo.asc_putOfflineApp(true); this.DocInfo.asc_putOfflineApp(true);
this._OfflineAppDocumentStartLoad();
} }
}; };
baseEditorsApi.prototype._OfflineAppDocumentStartLoad = function() { baseEditorsApi.prototype._OfflineAppDocumentStartLoad = function() {
......
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