Merge pull request #915 from jitsi/update-tooltip-from-profile

Update tooltip from profile
This commit is contained in:
yanas 2016-09-21 18:15:54 -05:00 committed by GitHub
commit f145d98a12
2 changed files with 11 additions and 0 deletions

View File

@ -407,6 +407,8 @@ const Toolbar = {
if(!APP.tokenData.isGuest) {
$("#toolbar_button_profile").addClass("unclickable");
UIUtil.removeTooltip(
document.getElementById('toolbar_button_profile'));
}
},
/**

View File

@ -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.
*