Commit 0b4016c3 authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander.Trofimov

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@67121 954022d7-b5bf-4e40-9824-e11837661b57
parent 2f1b87b0
...@@ -21,6 +21,12 @@ ...@@ -21,6 +21,12 @@
asc['spreadsheet_api'].prototype._OfflineAppDocumentEndLoad = function(_data) asc['spreadsheet_api'].prototype._OfflineAppDocumentEndLoad = function(_data)
{ {
if (_data == "")
{
this.sendEvent("asc_onError", c_oAscError.ID.ConvertationError, c_oAscError.Level.Critical);
return;
}
if (true) if (true)
{ {
this._startOpenDocument(_data); this._startOpenDocument(_data);
......
...@@ -10,6 +10,12 @@ asc_docs_api.prototype._OfflineAppDocumentStartLoad = function() ...@@ -10,6 +10,12 @@ asc_docs_api.prototype._OfflineAppDocumentStartLoad = function()
}; };
asc_docs_api.prototype._OfflineAppDocumentEndLoad = function(_url, _data) asc_docs_api.prototype._OfflineAppDocumentEndLoad = function(_url, _data)
{ {
if (_data == "")
{
this.sendEvent("asc_onError", c_oAscError.ID.ConvertationError, c_oAscError.Level.Critical);
return;
}
this.OpenDocument2(_url, _data); this.OpenDocument2(_url, _data);
this.WordControl.m_oLogicDocument.Set_FastCollaborativeEditing(false); this.WordControl.m_oLogicDocument.Set_FastCollaborativeEditing(false);
this.DocumentOrientation = (null == this.WordControl.m_oLogicDocument) ? true : !this.WordControl.m_oLogicDocument.Orientation; this.DocumentOrientation = (null == this.WordControl.m_oLogicDocument) ? true : !this.WordControl.m_oLogicDocument.Orientation;
......
...@@ -10,6 +10,11 @@ asc_docs_api.prototype._OfflineAppDocumentStartLoad = function() ...@@ -10,6 +10,11 @@ asc_docs_api.prototype._OfflineAppDocumentStartLoad = function()
}; };
asc_docs_api.prototype._OfflineAppDocumentEndLoad = function(_url, _data) asc_docs_api.prototype._OfflineAppDocumentEndLoad = function(_url, _data)
{ {
if (_data == "")
{
this.sendEvent("asc_onError", c_oAscError.ID.ConvertationError, c_oAscError.Level.Critical);
return;
}
if (c_oSerFormat.Signature !== _data.substring(0, c_oSerFormat.Signature.length)) if (c_oSerFormat.Signature !== _data.substring(0, c_oSerFormat.Signature.length))
{ {
this.OpenDocument(_url, _data); this.OpenDocument(_url, _data);
......
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