From a547dabab604289a97ffff04bbb7714066f00e3c Mon Sep 17 00:00:00 2001 From: Maxim Kadushkin Date: Thu, 8 Apr 2021 19:02:57 +0300 Subject: [PATCH] [common] fix bug 49480 --- apps/documenteditor/main/app/controller/Main.js | 6 ------ apps/presentationeditor/main/app/controller/Main.js | 6 ------ apps/spreadsheeteditor/main/app/controller/Main.js | 5 ----- 3 files changed, 17 deletions(-) diff --git a/apps/documenteditor/main/app/controller/Main.js b/apps/documenteditor/main/app/controller/Main.js index 535dfe7d4..cf5b60fb3 100644 --- a/apps/documenteditor/main/app/controller/Main.js +++ b/apps/documenteditor/main/app/controller/Main.js @@ -1156,12 +1156,6 @@ define([ $('.doc-placeholder').remove(); this.appOptions.user.guest && this.appOptions.canRenameAnonymous && (Common.Utils.InternalSettings.get("guest-username")===null) && this.showRenameUserDialog(); - $('#header-logo').children(0).click(function(e) { - e.stopImmediatePropagation(); - Common.UI.Themes.toggleTheme(); - - // getComputedStyle(document.documentElement).getPropertyValue('--background-normal'); - }) }, onLicenseChanged: function(params) { diff --git a/apps/presentationeditor/main/app/controller/Main.js b/apps/presentationeditor/main/app/controller/Main.js index 2a40265c2..f9f93cccd 100644 --- a/apps/presentationeditor/main/app/controller/Main.js +++ b/apps/presentationeditor/main/app/controller/Main.js @@ -877,12 +877,6 @@ define([ $('.doc-placeholder').remove(); this.appOptions.user.guest && this.appOptions.canRenameAnonymous && (Common.Utils.InternalSettings.get("guest-username")===null) && this.showRenameUserDialog(); - - $('#header-logo').children(0).click(function(e) { - e.stopImmediatePropagation(); - - Common.UI.Themes.toggleTheme(); - }) }, onLicenseChanged: function(params) { diff --git a/apps/spreadsheeteditor/main/app/controller/Main.js b/apps/spreadsheeteditor/main/app/controller/Main.js index d697b4088..80df0b8d9 100644 --- a/apps/spreadsheeteditor/main/app/controller/Main.js +++ b/apps/spreadsheeteditor/main/app/controller/Main.js @@ -946,11 +946,6 @@ define([ Common.Gateway.documentReady(); if (this.appOptions.user.guest && this.appOptions.canRenameAnonymous && !this.appOptions.isEditDiagram && !this.appOptions.isEditMailMerge && (Common.Utils.InternalSettings.get("guest-username")===null)) this.showRenameUserDialog(); - - $('#header-logo').children(0).click(function(e) { - e.stopImmediatePropagation(); - Common.UI.Themes.toggleTheme(); - }) }, onLicenseChanged: function(params) {