Commit 21f14e84 authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

Перенес информацию о курсоре в onRecalcLocks

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@66727 954022d7-b5bf-4e40-9824-e11837661b57
parent 8f3ecd7d
......@@ -833,12 +833,6 @@
}
this._updateChanges(data["changes"], data["changesIndex"], false);
if (true === CollaborativeEditing.Is_Fast() && data["excelAdditionalInfo"])
{
var CursorInfo = JSON.parse(data["excelAdditionalInfo"]);
CollaborativeEditing.Add_ForeignCursorToUpdate(CursorInfo.UserId, CursorInfo.CursorInfo, CursorInfo.UserShortId);
}
if (this.onRecalcLocks) {
this.onRecalcLocks(data["excelAdditionalInfo"]);
}
......
......@@ -330,6 +330,12 @@ asc_docs_api.prototype._coAuthoringInitEnd = function() {
t.sync_CollaborativeChanges();
}
};
this.CoAuthoringApi.onRecalcLocks = function(e) {
if (e && true === CollaborativeEditing.Is_Fast()) {
var CursorInfo = JSON.parse(e);
CollaborativeEditing.Add_ForeignCursorToUpdate(CursorInfo.UserId, CursorInfo.CursorInfo, CursorInfo.UserShortId);
}
};
this.CoAuthoringApi.onStartCoAuthoring = function(isStartEvent) {
if (t.ParcedDocument) {
CollaborativeEditing.Start_CollaborationEditing();
......
......@@ -976,6 +976,12 @@ asc_docs_api.prototype._coAuthoringInitEnd = function() {
t.sync_CollaborativeChanges();
}
};
this.CoAuthoringApi.onRecalcLocks = function(e) {
if (e && true === CollaborativeEditing.Is_Fast()) {
var CursorInfo = JSON.parse(e);
CollaborativeEditing.Add_ForeignCursorToUpdate(CursorInfo.UserId, CursorInfo.CursorInfo, CursorInfo.UserShortId);
}
};
this.CoAuthoringApi.onStartCoAuthoring = function(isStartEvent) {
CollaborativeEditing.Start_CollaborationEditing();
t.asc_setDrawCollaborationMarks(true);
......
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