From 436e232b2e809f38c34a44cebbf55c8e1934917d Mon Sep 17 00:00:00 2001 From: Maxim Kadushkin Date: Sun, 14 Feb 2021 00:44:12 +0300 Subject: [PATCH] [all] refactoring --- apps/documenteditor/main/app/controller/Main.js | 2 +- apps/presentationeditor/main/app/controller/Main.js | 2 +- apps/spreadsheeteditor/main/app/controller/Main.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/documenteditor/main/app/controller/Main.js b/apps/documenteditor/main/app/controller/Main.js index bf72d1026c..bd3df33b7a 100644 --- a/apps/documenteditor/main/app/controller/Main.js +++ b/apps/documenteditor/main/app/controller/Main.js @@ -1154,7 +1154,7 @@ 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() { + $('#header-logo').children(0).click(function(e) { e.stopImmediatePropagation(); Common.UI.Themes.toggleTheme(); diff --git a/apps/presentationeditor/main/app/controller/Main.js b/apps/presentationeditor/main/app/controller/Main.js index 8595c24cef..c005f1997a 100644 --- a/apps/presentationeditor/main/app/controller/Main.js +++ b/apps/presentationeditor/main/app/controller/Main.js @@ -879,7 +879,7 @@ 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() { + $('#header-logo').children(0).click(function(e) { e.stopImmediatePropagation(); Common.UI.Themes.toggleTheme(); diff --git a/apps/spreadsheeteditor/main/app/controller/Main.js b/apps/spreadsheeteditor/main/app/controller/Main.js index 320289adec..d1e10747d2 100644 --- a/apps/spreadsheeteditor/main/app/controller/Main.js +++ b/apps/spreadsheeteditor/main/app/controller/Main.js @@ -939,7 +939,7 @@ define([ 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() { + $('#header-logo').children(0).click(function(e) { e.stopImmediatePropagation(); Common.UI.Themes.toggleTheme(); })