[all] refactoring
This commit is contained in:
parent
3636bf78c4
commit
e641628a63
|
@ -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');
|
||||||
|
|
|
@ -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();
|
||||||
|
|
|
@ -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();
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue