Commit 15ea580d authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

onParticipantsChanged и onAuthParticipantsChanged теперь с 2-мя параметрами (еще и размер)

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@55587 954022d7-b5bf-4e40-9824-e11837661b57
parent f3c97069
......@@ -1479,10 +1479,10 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS";
this.asyncServerIdEndLoaded ();
return; // Error
}
this.CoAuthoringApi.onParticipantsChanged = function (e) { t.handlers.trigger("asc_onParticipantsChanged", e); };
this.CoAuthoringApi.onAuthParticipantsChanged = function (e) { t.handlers.trigger("asc_onAuthParticipantsChanged", e ); };
this.CoAuthoringApi.onMessage = function (e) { t.handlers.trigger("asc_onCoAuthoringChatReceiveMessage", e ); };
this.CoAuthoringApi.onConnectionStateChanged = function (e) { t.handlers.trigger("asc_onConnectionStateChanged", e ); };
this.CoAuthoringApi.onParticipantsChanged = function (e, count) { t.handlers.trigger("asc_onParticipantsChanged", e, count); };
this.CoAuthoringApi.onAuthParticipantsChanged = function (e, count) { t.handlers.trigger("asc_onAuthParticipantsChanged", e, count); };
this.CoAuthoringApi.onMessage = function (e) { t.handlers.trigger("asc_onCoAuthoringChatReceiveMessage", e); };
this.CoAuthoringApi.onConnectionStateChanged = function (e) { t.handlers.trigger("asc_onConnectionStateChanged", e); };
this.CoAuthoringApi.onLocksAcquired = function (e) {
if ( 2 != e["state"] )
{
......
......@@ -255,8 +255,8 @@ asc_docs_api.prototype._coAuthoringInit = function () {
}
var t = this;
this.CoAuthoringApi.onParticipantsChanged = function (e) { t.asc_fireCallback( "asc_onParticipantsChanged", e ); };
this.CoAuthoringApi.onAuthParticipantsChanged = function (e) { t.asc_fireCallback( "asc_onAuthParticipantsChanged", e ); };
this.CoAuthoringApi.onParticipantsChanged = function (e, count) { t.asc_fireCallback("asc_onParticipantsChanged", e, count); };
this.CoAuthoringApi.onAuthParticipantsChanged = function (e, count) { t.asc_fireCallback("asc_onAuthParticipantsChanged", e, count); };
this.CoAuthoringApi.onMessage = function (e) { t.asc_fireCallback( "asc_onCoAuthoringChatReceiveMessage", e ); };
this.CoAuthoringApi.onConnectionStateChanged = function (e) { t.asc_fireCallback( "asc_onConnectionStateChanged", e ); };
this.CoAuthoringApi.onLocksAcquired = function (e) {
......
......@@ -1482,21 +1482,17 @@ asc_docs_api.prototype._coAuthoringInit = function()
}
var t = this;
this.CoAuthoringApi.onParticipantsChanged = function (e, CountEditUsers)
{
t.asc_fireCallback( "asc_onParticipantsChanged", e );
this.CoAuthoringApi.onParticipantsChanged = function (e, CountEditUsers) {
t.asc_fireCallback("asc_onParticipantsChanged", e, CountEditUsers);
if ( 1 >= CountEditUsers )
editor.asc_setDrawCollaborationMarks(false);
else
editor.asc_setDrawCollaborationMarks(true);
};
this.CoAuthoringApi.onAuthParticipantsChanged = function (e)
{
t.asc_fireCallback( "asc_onAuthParticipantsChanged", e );
};
this.CoAuthoringApi.onMessage = function (e) { t.asc_fireCallback( "asc_onCoAuthoringChatReceiveMessage", e ); };
this.CoAuthoringApi.onConnectionStateChanged = function (e) { t.asc_fireCallback( "asc_onConnectionStateChanged", e ); };
this.CoAuthoringApi.onAuthParticipantsChanged = function (e, count) { t.asc_fireCallback("asc_onAuthParticipantsChanged", e, count); };
this.CoAuthoringApi.onMessage = function (e, count) { t.asc_fireCallback("asc_onCoAuthoringChatReceiveMessage", e); };
this.CoAuthoringApi.onConnectionStateChanged = function (e) { t.asc_fireCallback("asc_onConnectionStateChanged", e); };
this.CoAuthoringApi.onLocksAcquired = function (e)
{
if ( 2 != e["state"] )
......
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