Commit 37b46593 authored by Alexander.Trofimov's avatar Alexander.Trofimov

Добавил функцию окончания инициализации совместного редактирования

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@66462 954022d7-b5bf-4e40-9824-e11837661b57
parent 7ab83a2c
......@@ -190,7 +190,7 @@ baseEditorsApi.prototype._onEndPermissions = function() {
}
};
// CoAuthoring
baseEditorsApi.prototype._coAuthoringInitBase = function() {
baseEditorsApi.prototype._coAuthoringInit = function() {
var t = this;
//Если User не задан, отключаем коавторинг.
if (null == this.User || null == this.User.asc_getId()) {
......@@ -221,6 +221,10 @@ baseEditorsApi.prototype._coAuthoringInitBase = function() {
this.CoAuthoringApi.onWarning = function(e) {
t.sendEvent('asc_onError', c_oAscError.ID.Warning, c_oAscError.Level.NoCritical);
};
this._coAuthoringInitEnd();
};
baseEditorsApi.prototype._coAuthoringInitEnd = function() {
};
// SpellCheck
baseEditorsApi.prototype._coSpellCheckInit = function() {
......
......@@ -1056,7 +1056,7 @@ var editor;
/////////////////////////////////////////////////////////////////////////
///////////////////CoAuthoring and Chat api//////////////////////////////
/////////////////////////////////////////////////////////////////////////
spreadsheet_api.prototype._coAuthoringInit = function() {
spreadsheet_api.prototype._coAuthoringInitEnd = function() {
var t = this;
this.collaborativeEditing = new asc_CCollaborativeEditing(/*handlers*/{
"askLock": function() {
......@@ -1391,7 +1391,6 @@ var editor;
}
};
this._coAuthoringInitBase();
this.CoAuthoringApi.init(this.User, this.documentId, this.documentCallbackUrl, 'fghhfgsjdgfjs', c_oEditorId.Spreadsheet, this.documentFormatSave);
};
......
......@@ -128,7 +128,7 @@ asc_docs_api.prototype._coAuthoringSetChanges = function(e, oColor)
this._coAuthoringSetChange(e[Index], oColor);
};
asc_docs_api.prototype._coAuthoringInit = function() {
asc_docs_api.prototype._coAuthoringInitEnd = function() {
var t = this;
this.CoAuthoringApi.onParticipantsChanged = function(e, count) {
t.asc_fireCallback("asc_onParticipantsChanged", e, count);
......@@ -432,7 +432,6 @@ asc_docs_api.prototype._coAuthoringInit = function() {
}
};
this._coAuthoringInitBase();
this.CoAuthoringApi.init(this.User, this.documentId, this.documentCallbackUrl, 'fghhfgsjdgfjs', c_oEditorId.Presentation, this.documentFormatSave);
};
......
......@@ -916,7 +916,7 @@ asc_docs_api.prototype._coAuthoringSetChanges = function(e, oColor)
this._coAuthoringSetChange(e[Index], oColor);
};
asc_docs_api.prototype._coAuthoringInit = function() {
asc_docs_api.prototype._coAuthoringInitEnd = function() {
var t = this;
this.CoAuthoringApi.onParticipantsChanged = function(e, CountEditUsers) {
t.asc_fireCallback("asc_onParticipantsChanged", e, CountEditUsers);
......@@ -1136,7 +1136,6 @@ asc_docs_api.prototype._coAuthoringInit = function() {
}
};
this._coAuthoringInitBase();
this.CoAuthoringApi.init(this.User, this.documentId, this.documentCallbackUrl, 'fghhfgsjdgfjs', c_oEditorId.Word, this.documentFormatSave);
};
......
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