Commit b6e7d64d authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

Переделал _startOpenDocument, _asc_open, _OfflineAppDocumentStartLoad, _OfflineAppDocumentEndLoad

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@66598 954022d7-b5bf-4e40-9824-e11837661b57
parent c855dcdf
...@@ -13,12 +13,9 @@ ...@@ -13,12 +13,9 @@
var asc = window["Asc"]; var asc = window["Asc"];
var prot; var prot;
var _fOpenCallBack = undefined;
asc['spreadsheet_api'].prototype._OfflineAppDocumentStartLoad = function(fCallback) asc['spreadsheet_api'].prototype._OfflineAppDocumentStartLoad = function()
{ {
_fOpenCallBack = fCallback;
window["AscDesktopEditor"]["LocalStartOpen"](); window["AscDesktopEditor"]["LocalStartOpen"]();
}; };
...@@ -26,9 +23,7 @@ ...@@ -26,9 +23,7 @@
{ {
if (true) if (true)
{ {
var wb = this._openDocument(_data); this._startOpenDocument(_data);
_fOpenCallBack({returnCode: 0, val: wb});
_fOpenCallBack = undefined;
History.UserSaveMode = true; History.UserSaveMode = true;
} }
......
...@@ -337,7 +337,6 @@ var editor; ...@@ -337,7 +337,6 @@ var editor;
} }
}; };
spreadsheet_api.prototype.asc_LoadDocument = function() { spreadsheet_api.prototype.asc_LoadDocument = function() {
var t = this;
this.CoAuthoringApi.auth(this.getViewMode()); this.CoAuthoringApi.auth(this.getViewMode());
this.sync_StartAction(c_oAscAsyncActionType.BlockInteraction, c_oAscAsyncAction.Open); this.sync_StartAction(c_oAscAsyncActionType.BlockInteraction, c_oAscAsyncAction.Open);
......
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