Commit b0233502 authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

fix bugs #30893, #30971

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@66331 954022d7-b5bf-4e40-9824-e11837661b57
parent bd949f77
...@@ -165,12 +165,12 @@ asc_docs_api.prototype._coAuthoringInit = function() { ...@@ -165,12 +165,12 @@ asc_docs_api.prototype._coAuthoringInit = function() {
}; };
this.CoAuthoringApi.onCursor = function(e) { this.CoAuthoringApi.onCursor = function(e) {
if (true === CollaborativeEditing.Is_Fast()) { if (true === CollaborativeEditing.Is_Fast()) {
t.WordControl.m_oLogicDocument.Update_ForeignCursor(e[e.length - 1].cursor, e[e.length - 1].user, true); t.WordControl.m_oLogicDocument.Update_ForeignCursor(e[e.length - 1]['cursor'], e[e.length - 1]['user'], true);
} }
}; };
this.CoAuthoringApi.onConnectionStateChanged = function(e) { this.CoAuthoringApi.onConnectionStateChanged = function(e) {
if (true === CollaborativeEditing.Is_Fast() && false === e.state) { if (true === CollaborativeEditing.Is_Fast() && false === e['state']) {
editor.WordControl.m_oLogicDocument.Remove_ForeignCursor(e.id); editor.WordControl.m_oLogicDocument.Remove_ForeignCursor(e['id']);
} }
t.asc_fireCallback("asc_onConnectionStateChanged", e); t.asc_fireCallback("asc_onConnectionStateChanged", e);
}; };
......
...@@ -1026,12 +1026,12 @@ asc_docs_api.prototype._coAuthoringInit = function() { ...@@ -1026,12 +1026,12 @@ asc_docs_api.prototype._coAuthoringInit = function() {
}; };
this.CoAuthoringApi.onCursor = function(e) { this.CoAuthoringApi.onCursor = function(e) {
if (true === CollaborativeEditing.Is_Fast()) { if (true === CollaborativeEditing.Is_Fast()) {
t.WordControl.m_oLogicDocument.Update_ForeignCursor(e[e.length - 1].cursor, e[e.length - 1].user, true); t.WordControl.m_oLogicDocument.Update_ForeignCursor(e[e.length - 1]['cursor'], e[e.length - 1]['user'], true);
} }
}; };
this.CoAuthoringApi.onConnectionStateChanged = function(e) { this.CoAuthoringApi.onConnectionStateChanged = function(e) {
if (true === CollaborativeEditing.Is_Fast() && false === e.state) { if (true === CollaborativeEditing.Is_Fast() && false === e['state']) {
editor.WordControl.m_oLogicDocument.Remove_ForeignCursor(e.id); editor.WordControl.m_oLogicDocument.Remove_ForeignCursor(e['id']);
} }
t.asc_fireCallback("asc_onConnectionStateChanged", e); t.asc_fireCallback("asc_onConnectionStateChanged", e);
}; };
......
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