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

delete set_isViewerMode (для совместного редактирования)

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@50427 954022d7-b5bf-4e40-9824-e11837661b57
parent 77241ba3
...@@ -644,10 +644,6 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS"; ...@@ -644,10 +644,6 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS";
}, },
asc_setViewerMode: function (isViewerMode) { asc_setViewerMode: function (isViewerMode) {
// Для совместного редактирования важен переход из режима просмотра в режим редактирования
if (true === this.ServerIdWaitComplete && true === this.FontLoadWaitComplete) {
this.CoAuthoringApi.set_isViewerMode(!!isViewerMode);
}
if (this.controller.setViewerMode) { if (this.controller.setViewerMode) {
this.controller.setViewerMode(isViewerMode); this.controller.setViewerMode(isViewerMode);
if (false === isViewerMode) { if (false === isViewerMode) {
......
...@@ -1436,7 +1436,7 @@ asc_docs_api.prototype._coAuthoringInit = function() ...@@ -1436,7 +1436,7 @@ asc_docs_api.prototype._coAuthoringInit = function()
if (isDisconnectAtAll) { if (isDisconnectAtAll) {
// Посылаем наверх эвент об отключении от сервера // Посылаем наверх эвент об отключении от сервера
t.asc_fireCallback("asc_onСoAuthoringDisconnect"); t.asc_fireCallback("asc_onСoAuthoringDisconnect");
t.SetViewMode(true, true); t.SetViewMode(true);
if (!isCloseCoAuthoring){ if (!isCloseCoAuthoring){
t.sync_ErrorCallback(c_oAscError.ID.CoAuthoringDisconnect, c_oAscError.Level.NoCritical); t.sync_ErrorCallback(c_oAscError.ID.CoAuthoringDisconnect, c_oAscError.Level.NoCritical);
} }
...@@ -5949,7 +5949,7 @@ asc_docs_api.prototype.asyncImagesDocumentEndLoaded = function() ...@@ -5949,7 +5949,7 @@ asc_docs_api.prototype.asyncImagesDocumentEndLoaded = function()
this.WordControl.InitControl(); this.WordControl.InitControl();
if (this.isViewMode) if (this.isViewMode)
this.SetViewMode(true, /*isNotSendOnCoAuthoringServer*/ true); this.SetViewMode(true);
//this.asyncServerIdStartLoaded(); //this.asyncServerIdStartLoaded();
return; return;
...@@ -6097,7 +6097,7 @@ asc_docs_api.prototype.OpenDocumentEndCallback = function() ...@@ -6097,7 +6097,7 @@ asc_docs_api.prototype.OpenDocumentEndCallback = function()
this.WordControl.InitControl(); this.WordControl.InitControl();
if (this.isViewMode) if (this.isViewMode)
this.SetViewMode(true, /*isNotSendOnCoAuthoringServer*/ true); this.SetViewMode(true);
if (undefined != window['qtDocBridge']) if (undefined != window['qtDocBridge'])
{ {
...@@ -6485,11 +6485,8 @@ asc_docs_api.prototype.GetSectionInfo = function() ...@@ -6485,11 +6485,8 @@ asc_docs_api.prototype.GetSectionInfo = function()
return obj; return obj;
} }
asc_docs_api.prototype.SetViewMode = function( isViewMode, isNotSendOnCoAuthoringServer ) asc_docs_api.prototype.SetViewMode = function( isViewMode )
{ {
if (!isNotSendOnCoAuthoringServer && this.ServerIdWaitComplete && this.ServerImagesWaitComplete)
this.CoAuthoringApi.set_isViewerMode (isViewMode);
if (isViewMode) if (isViewMode)
{ {
this.isViewMode = true; this.isViewMode = true;
......
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