Commit 6928c5ee authored by Sergey.Konovalov's avatar Sergey.Konovalov Committed by Alexander.Trofimov

для offline работы

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@64523 954022d7-b5bf-4e40-9824-e11837661b57
parent ec9c8c77
......@@ -549,7 +549,11 @@ asc_docs_api.prototype._coAuthoringInit = function () {
}
};
this.CoAuthoringApi.set_url(null);
//в обычном серверном режиме портим ссылку, потому что CoAuthoring теперь имеет встроенный адрес
//todo надо использовать проверку get_OfflineApp, но она инициализируется только после loadDocument
if(!(window["NATIVE_EDITOR_ENJINE"] || !documentId)){
this.CoAuthoringApi.set_url(null);
}
this.CoAuthoringApi.init(this.User, documentId, documentCallbackUrl, 'fghhfgsjdgfjs', function(){}, c_oEditorId.Presentation,
documentFormatSave, this.isViewMode);
......@@ -3761,8 +3765,13 @@ asc_docs_api.prototype.asyncFontsDocumentStartLoaded = function()
var _count = 0;
if (_loader_object !== undefined && _loader_object != null)
{
for (var i in _loader_object.ImageMap)
for (var i in _loader_object.ImageMap) {
if(this.DocInfo.get_OfflineApp()) {
var localUrl = _loader_object.ImageMap[i];
g_oDocumentUrls.addImageUrl(localUrl, documentUrl + 'media/' + localUrl);
}
++_count;
}
}
_progress.ImagesCount = _count + g_oUserTexturePresets.length;
......
......@@ -3057,7 +3057,9 @@ $(document).ready(function(){
var isViewMode = "true" == getURLParameter("isViewMode");
editor.SetViewMode(isViewMode);
editor.LoadDocument(c_DocInfo);
editor.asc_setDocInfo(c_DocInfo);
editor.asc_getEditorPermissions();
editor.LoadDocument();
......
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