Fix comments

This commit is contained in:
Maxim Voloshin 2016-10-25 20:40:43 +03:00
parent 6820ec8d23
commit 86f1d287d7
1 changed files with 5 additions and 1 deletions

View File

@ -555,7 +555,7 @@ SmallVideo.prototype.showRaisedHandIndicator = function (show) {
* @param options.content {String} HTML content of the indicator * @param options.content {String} HTML content of the indicator
* @param options.tooltip {String} The key that should be passed to tooltip * @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) { SmallVideo.prototype.getIndicatorSpan = function(options) {
var indicator = this.container.querySelector('#' + options.id); var indicator = this.container.querySelector('#' + options.id);
@ -570,6 +570,10 @@ SmallVideo.prototype.getIndicatorSpan = function(options) {
indicator.innerHTML = options.content; 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"); UIUtil.setTooltip(indicator, options.tooltip, "top");
this.container.appendChild(indicator); this.container.appendChild(indicator);