Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
Merge branch 'm-voloshin-tooltips-global-handler'
Lyubomir Marinov8f4b94f73260
diff --cc modules/UI/util/UIUtil.jsindex 531a56068b,2edcba84d6..d4f581909c--- a/modules/UI/util/UIUtil.js+++ b/modules/UI/util/UIUtil.js@@@ -2,6 -2,21 +2,22 @@@import KeyboardShortcut from '../../keyboardshortcut/keyboardshortcut';+ /**- * The 'TOOLTIP_POSITIONS' constant indicates a value of 'gravity' option- * to be passed to AUI Tooltip plugin based on the desired tooltip position++ * Associates tooltip element position (in the terms of++ * {@link UIUtil#setTooltip} which do not look like CSS <tt>position</tt>) with++ * AUI tooltip <tt>gravity</tt>.+ */+ const TOOLTIP_POSITIONS = {- 'top': 's',++ 'bottom': 'n',++ 'bottom-left': 'ne',++ 'bottom-right': 'nw',+ 'left': 'e',+ 'right': 'w',- 'bottom': 'n',++ 'top': 's',+ 'top-left': 'se',- 'top-right': 'sw',- 'bottom-left': 'ne',- 'bottom-right': 'nw'++ 'top-right': 'sw'+ };+/*** Created by hristo on 12/22/14.*/@@@ -84,6 -99,26 +100,29 @@@context.putImageData(imgData, 0, 0);},+ /**- * Sets global handler for all tooltips. Once this function is invoked- * all you need to create new tooltip is to update DOM node with- * appropriate class (ex. "tooltip-n") and "content" attribute.++ * Sets a global handler for all tooltips. Once invoked, create a new++ * tooltip by merely updating a DOM node with the appropriate class (e.g.++ * <tt>tooltip-n</tt>) and the attribute <tt>content</tt>.+ */- activateTooltips: function () {++ activateTooltips() {+ AJS.$('[data-tooltip]').tooltip({+ gravity() {+ return this.getAttribute('data-tooltip');+ },+++ title() {- return this.getAttribute('content')++ return this.getAttribute('content');+ },- html: true, // handle multiline tooltips- // two options to prevent tooltips from being stuck:- live: true, // attach listener to document element- hoverable: false // make custom tooltips to behave like native++++ html: true, // Handle multiline tooltips.++++ // The following two prevent tooltips from being stuck:++ hoverable: false, // Make custom tooltips behave like native ones.++ live: true // Attach listener to document element.+ });+ },+/*** Sets the tooltip to the given element.*