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 @@ ...@@ -775,8 +775,7 @@
function tryReconnect() { function tryReconnect() {
if (reconnectTimeout) if (reconnectTimeout) {
{
clearTimeout(reconnectTimeout); clearTimeout(reconnectTimeout);
} }
attemptCount++; attemptCount++;
...@@ -877,6 +876,10 @@ ...@@ -877,6 +876,10 @@
}, },
"savePartChanges":function () { "savePartChanges":function () {
docsCoApi._onSavePartChanges(); docsCoApi._onSavePartChanges();
},
"drop":function(data) {
docsCoApi.disconnect();
docsCoApi.onDisconnect(data['description'], true, docsCoApi.isCloseCoAuthoring);
} }
}; };
}; };
......
...@@ -518,7 +518,7 @@ asc_docs_api.prototype._coAuthoringInit = function () { ...@@ -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(){ window.location.port, g_sMainServiceLocalUrl, function(){
}, c_oEditorId.Presentation, documentFormatSave, this.isViewMode); }, c_oEditorId.Presentation, documentFormatSave, this.isViewMode);
......
...@@ -1616,27 +1616,27 @@ asc_docs_api.prototype.asc_coAuthoringChatSendMessage = function(message) ...@@ -1616,27 +1616,27 @@ asc_docs_api.prototype.asc_coAuthoringChatSendMessage = function(message)
if (!this.CoAuthoringApi) if (!this.CoAuthoringApi)
return; // Error return; // Error
this.CoAuthoringApi.sendMessage(message); this.CoAuthoringApi.sendMessage(message);
} };
// get chart messages, возвращается массив CChatMessage // get chart messages, возвращается массив CChatMessage
asc_docs_api.prototype.asc_coAuthoringChatGetMessages = function() asc_docs_api.prototype.asc_coAuthoringChatGetMessages = function()
{ {
if (!this.CoAuthoringApi) if (!this.CoAuthoringApi)
return; // Error return; // Error
this.CoAuthoringApi.getMessages(); this.CoAuthoringApi.getMessages();
} };
// get users, возвращается массив users // get users, возвращается массив users
asc_docs_api.prototype.asc_coAuthoringGetUsers = function() asc_docs_api.prototype.asc_coAuthoringGetUsers = function()
{ {
if (!this.CoAuthoringApi) if (!this.CoAuthoringApi)
return; // Error return; // Error
this.CoAuthoringApi.getUsers(); this.CoAuthoringApi.getUsers();
} };
// server disconnect // server disconnect
asc_docs_api.prototype.asc_coAuthoringDisconnect = function () { asc_docs_api.prototype.asc_coAuthoringDisconnect = function () {
if (!this.CoAuthoringApi) if (!this.CoAuthoringApi)
return; // Error return; // Error
this.CoAuthoringApi.disconnect(); this.CoAuthoringApi.disconnect();
} };
///////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////
//////////////////////////SpellChecking api////////////////////////////// //////////////////////////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