Commit 480033e7 authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

sync_zoomChangeCallback вынес за if-else

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@63014 954022d7-b5bf-4e40-9824-e11837661b57
parent d3fbf596
......@@ -865,8 +865,6 @@ asc_docs_api.prototype.LoadDocument = function(c_DocInfo)
};
sendCommand( oThis, function(){}, rData );
this.sync_zoomChangeCallback(this.WordControl.m_nZoomValue, this.WordControl.m_nZoomType);
}
else
{
......@@ -876,9 +874,8 @@ asc_docs_api.prototype.LoadDocument = function(c_DocInfo)
// For test create unique id
documentId = "test_presentation_id";
this.OfflineAppDocumentStartLoad();
this.sync_zoomChangeCallback(this.WordControl.m_nZoomValue, this.WordControl.m_nZoomType);
}
this.sync_zoomChangeCallback(this.WordControl.m_nZoomValue, this.WordControl.m_nZoomType);
};
asc_docs_api.prototype.SetFontsPath = function(path)
......
......@@ -925,7 +925,6 @@ asc_docs_api.prototype.LoadDocument = function(c_DocInfo)
this.sync_StartAction(c_oAscAsyncActionType.BlockInteraction, c_oAscAsyncAction.Open);
sendCommand( oThis, function(){}, rData );
}
this.sync_zoomChangeCallback(this.WordControl.m_nZoomValue, 0);
}
else
{
......@@ -936,9 +935,9 @@ asc_docs_api.prototype.LoadDocument = function(c_DocInfo)
// For test create unique id
documentId = "test_document_id";
this.OfflineAppDocumentStartLoad();
this.sync_zoomChangeCallback(this.WordControl.m_nZoomValue, 0);
}
this.sync_zoomChangeCallback(this.WordControl.m_nZoomValue, 0);
this.asyncServerIdStartLoaded();
};
......
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