Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

Fix comments

Maxim Voloshin86f1d287d7d6
diff --git a/modules/UI/videolayout/SmallVideo.js b/modules/UI/videolayout/SmallVideo.js
index 4f47eb70bd..313783afeb 100644
--- a/modules/UI/videolayout/SmallVideo.js
+++ b/modules/UI/videolayout/SmallVideo.js
@@ -555,7 +555,7 @@ SmallVideo.prototype.showRaisedHandIndicator = function (show) {
* @param options.content {String} HTML content of the indicator
* @param options.tooltip {String} The key that should be passed to tooltip
*
- * @returns {HTMLElement} the raised hand indicator
+ * @returns {HTMLElement} DOM represention of the indicator
*/
SmallVideo.prototype.getIndicatorSpan = function(options) {
var indicator = this.container.querySelector('#' + options.id);
@@ -570,6 +570,10 @@ SmallVideo.prototype.getIndicatorSpan = function(options) {
indicator.innerHTML = options.content;
+ // This element will be translated by UIUtil.setTooltip and
+ // that's why it is not translated here.
+ // Do not translate the same element multiple times in a row
+ // because it prevents tooltip from disappearing.
UIUtil.setTooltip(indicator, options.tooltip, "top");
this.container.appendChild(indicator);