diff --git a/modules/UI/toolbars/Toolbar.js b/modules/UI/toolbars/Toolbar.js index f7576cf52..d4812d141 100644 --- a/modules/UI/toolbars/Toolbar.js +++ b/modules/UI/toolbars/Toolbar.js @@ -407,6 +407,8 @@ const Toolbar = { if(!APP.tokenData.isGuest) { $("#toolbar_button_profile").addClass("unclickable"); + UIUtil.removeTooltip( + document.getElementById('toolbar_button_profile')); } }, /** diff --git a/modules/UI/util/UIUtil.js b/modules/UI/util/UIUtil.js index 81e296f31..531a56068 100644 --- a/modules/UI/util/UIUtil.js +++ b/modules/UI/util/UIUtil.js @@ -113,6 +113,15 @@ import KeyboardShortcut from '../../keyboardshortcut/keyboardshortcut'; }); }, + /** + * Removes the tooltip to the given element. + * + * @param element the element to remove the tooltip from + */ + removeTooltip: function (element) { + AJS.$(element).tooltip('destroy'); + }, + /** * Internal util function for generating tooltip title. *