From 05571638edbfad6a883647de63e72415a3e89a29 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Mon, 30 Aug 2021 23:13:40 +0300 Subject: [PATCH] [SSE] Fix protection --- apps/spreadsheeteditor/main/app/controller/WBProtection.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/apps/spreadsheeteditor/main/app/controller/WBProtection.js b/apps/spreadsheeteditor/main/app/controller/WBProtection.js index 53ae60bd0..9590cbc02 100644 --- a/apps/spreadsheeteditor/main/app/controller/WBProtection.js +++ b/apps/spreadsheeteditor/main/app/controller/WBProtection.js @@ -76,7 +76,6 @@ define([ }); Common.NotificationCenter.on('app:ready', this.onAppReady.bind(this)); - Common.NotificationCenter.on('api:disconnect', _.bind(this.onCoAuthoringDisconnect, this)); Common.NotificationCenter.on('protect:sheet', _.bind(this.onSheetClick, this)); }, setConfig: function (data, api) { @@ -93,7 +92,6 @@ define([ this.api.asc_registerCallback('asc_onChangeProtectWorksheet',_.bind(this.onChangeProtectSheet, this)); this.api.asc_registerCallback('asc_onActiveSheetChanged', _.bind(this.onActiveSheetChanged, this)); this.api.asc_registerCallback('asc_onSelectionChanged', _.bind(this.onApiSelectionChanged, this)); - this.api.asc_registerCallback('asc_onCoAuthoringDisconnect',_.bind(this.onCoAuthoringDisconnect, this)); } }, @@ -352,10 +350,6 @@ define([ } } } - }, - - onCoAuthoringDisconnect: function() { - this.SetDisabled(true); } }, SSE.Controllers.WBProtection || {}));