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

Убрал добавку connection (не нужна совсем)

Поправил проблему drop-а пользователя. bug #30327
Теперь мы отсоединяемся от совместного редактирования, но остаемся в соединении.

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@64975 954022d7-b5bf-4e40-9824-e11837661b57
parent 81512c40
...@@ -1019,6 +1019,10 @@ ...@@ -1019,6 +1019,10 @@
var t = this; var t = this;
if (true === this._isAuth) { if (true === this._isAuth) {
this._state = ConnectionState.Authorized; this._state = ConnectionState.Authorized;
// Мы должны только соединиться для получения файла. Совместное редактирование уже было отключено.
if (this.isCloseCoAuthoring)
return;
// Мы уже авторизовывались, нужно обновить пользователей (т.к. пользователи могли входить и выходить пока у нас не было соединения) // Мы уже авторизовывались, нужно обновить пользователей (т.к. пользователи могли входить и выходить пока у нас не было соединения)
this._onAuthParticipantsChanged(data['participants']); this._onAuthParticipantsChanged(data['participants']);
...@@ -1106,8 +1110,6 @@ ...@@ -1106,8 +1110,6 @@
}; };
// Авторизация (ее нужно делать после выставления состояния редактора view-mode) // Авторизация (ее нужно делать после выставления состояния редактора view-mode)
DocsCoApi.prototype.auth = function(isViewer) { DocsCoApi.prototype.auth = function(isViewer) {
if (this.isCloseCoAuthoring)
return;
this.isAuthInit = true; this.isAuthInit = true;
this._isViewer = isViewer; this._isViewer = isViewer;
if (this._locks) { if (this._locks) {
...@@ -1138,6 +1140,7 @@ ...@@ -1138,6 +1140,7 @@
'sessionId': this._id, 'sessionId': this._id,
'documentFormatSave': this._documentFormatSave, 'documentFormatSave': this._documentFormatSave,
'isViewer': this._isViewer, 'isViewer': this._isViewer,
'isCloseCoAuthoring': this.isCloseCoAuthoring,
'version': asc_coAuthV 'version': asc_coAuthV
}); });
}; };
......
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