Commit 93c25484 authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

Добавил тип редакторов c_oAscEditorsType (при инициализации совместного...

Добавил тип редакторов c_oAscEditorsType (при инициализации совместного редактирования передаем тип)

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@49063 954022d7-b5bf-4e40-9824-e11837661b57
parent fdc84f2d
......@@ -95,4 +95,10 @@ var c_oAscLineDrawingRule = {
Right : 2,
Top : 0,
Bottom : 2
};
var c_oAscEditorsType = {
Word : 0,
Excel : 1,
Presentation : 2
};
\ No newline at end of file
......@@ -755,7 +755,7 @@
}
DocsCoApi.prototype.init = function (user, docid, isviewermode, token, serverHost, serverPath, callback, isExcel) {
DocsCoApi.prototype.init = function (user, docid, isviewermode, token, serverHost, serverPath, callback, editorType) {
this._user = user;
this._docid = docid;
this._isviewermode = isviewermode;
......@@ -769,7 +769,8 @@
this._serverPath = serverPath;
this.sockjs_url = this._url + '/doc/'+docid+'/c';
this.sockjs = initSocksJs(this.sockjs_url, this);
this._isExcel = isExcel;
this._isExcel = c_oAscEditorsType.Excel === editorType;
this._isPresentation = c_oAscEditorsType.Presentation === editorType;
this._isAuth = false;
this.dataHandler =
......
......@@ -1360,7 +1360,7 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS";
};
this.CoAuthoringApi.init (user, docId, this.asc_getViewerMode(), 'fghhfgsjdgfjs', window.location.host, g_sMainServiceLocalUrl, function(){
}, /*isExcel*/true);
}, c_oAscEditorsType.Excel);
},
// Set CoAuthoring server url
......
......@@ -288,7 +288,7 @@ asc_docs_api.prototype._coAuthoringInit = function (docId, user) {
};
this.CoAuthoringApi.init (user, docId, this.isViewMode, 'fghhfgsjdgfjs', window.location.host, g_sMainServiceLocalUrl, function(){
});
}, c_oAscEditorsType.Presentation);
// ToDo init other callbacks
}
......
......@@ -1388,7 +1388,7 @@ asc_docs_api.prototype._coAuthoringInit = function()
};
this.CoAuthoringApi.init (editor.User, documentId, this.isViewMode, 'fghhfgsjdgfjs', window.location.host, g_sMainServiceLocalUrl, function(){
});
}, c_oAscEditorsType.Word);
// ToDo init other callbacks
}
......
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