[common] fix bug 49480

This commit is contained in:
Maxim Kadushkin 2021-04-08 19:02:57 +03:00
parent d4a2b07d98
commit a547dabab6
3 changed files with 0 additions and 17 deletions

View file

@ -1156,12 +1156,6 @@ 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(function(e) {
e.stopImmediatePropagation();
Common.UI.Themes.toggleTheme();
// getComputedStyle(document.documentElement).getPropertyValue('--background-normal');
})
}, },
onLicenseChanged: function(params) { onLicenseChanged: function(params) {

View file

@ -877,12 +877,6 @@ 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(function(e) {
e.stopImmediatePropagation();
Common.UI.Themes.toggleTheme();
})
}, },
onLicenseChanged: function(params) { onLicenseChanged: function(params) {

View file

@ -946,11 +946,6 @@ define([
Common.Gateway.documentReady(); Common.Gateway.documentReady();
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(function(e) {
e.stopImmediatePropagation();
Common.UI.Themes.toggleTheme();
})
}, },
onLicenseChanged: function(params) { onLicenseChanged: function(params) {