[all] refactoring

This commit is contained in:
Maxim Kadushkin 2021-02-12 12:08:53 +03:00
parent 3636bf78c4
commit e641628a63
3 changed files with 3 additions and 4 deletions

View file

@ -1153,9 +1153,8 @@ define([
$('.doc-placeholder').remove(); $('.doc-placeholder').remove();
this.appOptions.user.guest && this.appOptions.canRenameAnonymous && (Common.Utils.InternalSettings.get("guest-username")===null) && this.showRenameUserDialog(); this.appOptions.user.guest && this.appOptions.canRenameAnonymous && (Common.Utils.InternalSettings.get("guest-username")===null) && this.showRenameUserDialog();
$('#header-logo').children(0).click(e => { $('#header-logo').children(0).click(function() {
e.stopImmediatePropagation(); e.stopImmediatePropagation();
Common.UI.Themes.toggleTheme(); Common.UI.Themes.toggleTheme();
// getComputedStyle(document.documentElement).getPropertyValue('--background-normal'); // getComputedStyle(document.documentElement).getPropertyValue('--background-normal');

View file

@ -878,7 +878,7 @@ define([
$('.doc-placeholder').remove(); $('.doc-placeholder').remove();
this.appOptions.user.guest && this.appOptions.canRenameAnonymous && (Common.Utils.InternalSettings.get("guest-username")===null) && this.showRenameUserDialog(); this.appOptions.user.guest && this.appOptions.canRenameAnonymous && (Common.Utils.InternalSettings.get("guest-username")===null) && this.showRenameUserDialog();
$('#header-logo').children(0).click(e => { $('#header-logo').children(0).click(function() {
e.stopImmediatePropagation(); e.stopImmediatePropagation();
Common.UI.Themes.toggleTheme(); Common.UI.Themes.toggleTheme();

View file

@ -938,7 +938,7 @@ define([
if (this.appOptions.user.guest && this.appOptions.canRenameAnonymous && !this.appOptions.isEditDiagram && !this.appOptions.isEditMailMerge && (Common.Utils.InternalSettings.get("guest-username")===null)) if (this.appOptions.user.guest && this.appOptions.canRenameAnonymous && !this.appOptions.isEditDiagram && !this.appOptions.isEditMailMerge && (Common.Utils.InternalSettings.get("guest-username")===null))
this.showRenameUserDialog(); this.showRenameUserDialog();
$('#header-logo').children(0).click(e => { $('#header-logo').children(0).click(function() {
e.stopImmediatePropagation(); e.stopImmediatePropagation();
Common.UI.Themes.toggleTheme(); Common.UI.Themes.toggleTheme();
}) })