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

Реализовал drop для отключения пользователя от документа при лишении прав.

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@56399 954022d7-b5bf-4e40-9824-e11837661b57
parent 5ca4ca1f
......@@ -775,8 +775,7 @@
function tryReconnect() {
if (reconnectTimeout)
{
if (reconnectTimeout) {
clearTimeout(reconnectTimeout);
}
attemptCount++;
......@@ -877,6 +876,10 @@
},
"savePartChanges":function () {
docsCoApi._onSavePartChanges();
},
"drop":function(data) {
docsCoApi.disconnect();
docsCoApi.onDisconnect(data['description'], true, docsCoApi.isCloseCoAuthoring);
}
};
};
......
......@@ -518,7 +518,7 @@ asc_docs_api.prototype._coAuthoringInit = function () {
}
};
this.CoAuthoringApi.init (this.User, documentId, 'fghhfgsjdgfjs', window.location.hostname,
this.CoAuthoringApi.init(this.User, documentId, 'fghhfgsjdgfjs', window.location.hostname,
window.location.port, g_sMainServiceLocalUrl, function(){
}, c_oEditorId.Presentation, documentFormatSave, this.isViewMode);
......
......@@ -1616,27 +1616,27 @@ asc_docs_api.prototype.asc_coAuthoringChatSendMessage = function(message)
if (!this.CoAuthoringApi)
return; // Error
this.CoAuthoringApi.sendMessage(message);
}
};
// get chart messages, возвращается массив CChatMessage
asc_docs_api.prototype.asc_coAuthoringChatGetMessages = function()
{
if (!this.CoAuthoringApi)
return; // Error
this.CoAuthoringApi.getMessages();
}
};
// get users, возвращается массив users
asc_docs_api.prototype.asc_coAuthoringGetUsers = function()
{
if (!this.CoAuthoringApi)
return; // Error
this.CoAuthoringApi.getUsers();
}
};
// server disconnect
asc_docs_api.prototype.asc_coAuthoringDisconnect = function () {
if (!this.CoAuthoringApi)
return; // Error
this.CoAuthoringApi.disconnect();
}
};
/////////////////////////////////////////////////////////////////////////
//////////////////////////SpellChecking api//////////////////////////////
......
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