Merge pull request #915 from jitsi/update-tooltip-from-profile
Update tooltip from profile
This commit is contained in:
commit
f145d98a12
|
@ -407,6 +407,8 @@ const Toolbar = {
|
|||
|
||||
if(!APP.tokenData.isGuest) {
|
||||
$("#toolbar_button_profile").addClass("unclickable");
|
||||
UIUtil.removeTooltip(
|
||||
document.getElementById('toolbar_button_profile'));
|
||||
}
|
||||
},
|
||||
/**
|
||||
|
|
|
@ -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.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue