From 82ebfd9945a651d0a02682bfa3ccc4870e87a7f0 Mon Sep 17 00:00:00 2001 From: Kostiantyn Pashura Date: Thu, 22 Sep 2016 12:52:53 +0300 Subject: [PATCH] disable_star_indicator added --- interface_config.js | 3 ++- modules/UI/videolayout/SmallVideo.js | 11 ++++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/interface_config.js b/interface_config.js index 2c1987011..8a8b1385b 100644 --- a/interface_config.js +++ b/interface_config.js @@ -40,5 +40,6 @@ var interfaceConfig = { REMOTE_THUMBNAIL_RATIO_WIDTH: 1, REMOTE_THUMBNAIL_RATIO_HEIGHT: 1, // Enables feedback star animation. - ENABLE_FEEDBACK_ANIMATION: false + ENABLE_FEEDBACK_ANIMATION: false, + DISABLE_FOCUS_INDICATOR: false }; diff --git a/modules/UI/videolayout/SmallVideo.js b/modules/UI/videolayout/SmallVideo.js index 911c3bc4f..1c3ce2ca4 100644 --- a/modules/UI/videolayout/SmallVideo.js +++ b/modules/UI/videolayout/SmallVideo.js @@ -1,5 +1,4 @@ -/* global $, APP, JitsiMeetJS */ -/* jshint -W101 */ +/* global $, APP, JitsiMeetJS, interfaceConfig */ import Avatar from "../avatar/Avatar"; import UIUtil from "../util/UIUtil"; import UIEvents from "../../../service/UI/UIEvents"; @@ -222,7 +221,7 @@ SmallVideo.prototype.getAudioMutedIndicator = function () { audioMutedSpan = document.createElement('span'); audioMutedSpan.className = 'audioMuted toolbar-icon'; - + UIUtil.setTooltip(audioMutedSpan, "videothumbnail.mute", "top"); @@ -277,11 +276,11 @@ SmallVideo.prototype.getVideoMutedIndicator = function () { var mutedIndicator = document.createElement('i'); mutedIndicator.className = 'icon-camera-disabled'; - + UIUtil.setTooltip(mutedIndicator, "videothumbnail.videomute", "top"); - + videoMutedSpan.appendChild(mutedIndicator); return $('#' + this.videoSpanId + ' .videoMuted'); @@ -291,6 +290,8 @@ SmallVideo.prototype.getVideoMutedIndicator = function () { * Creates the element indicating the moderator(owner) of the conference. */ SmallVideo.prototype.createModeratorIndicatorElement = function () { + // don't create moderator indicator if DISABLE_FOCUS_INDICATOR is true + if (interfaceConfig.DISABLE_FOCUS_INDICATOR) return false; // Show moderator indicator var indicatorSpan = $('#' + this.videoSpanId + ' .focusindicator');