Fixes jshint warnings.

This commit is contained in:
Boris Grozev 2015-09-14 09:25:43 -05:00
parent dff4666bc6
commit fdf73a9b4e
3 changed files with 9 additions and 4 deletions

View File

@ -16,8 +16,10 @@ var interfaceConfig = {
APP_NAME: "Jitsi Meet", APP_NAME: "Jitsi Meet",
INVITATION_POWERED_BY: true, INVITATION_POWERED_BY: true,
ACTIVE_SPEAKER_AVATAR_SIZE: 100, ACTIVE_SPEAKER_AVATAR_SIZE: 100,
TOOLBAR_BUTTONS: ['authentication', 'microphone', 'camera', 'desktop', 'recording', 'security', 'invite', TOOLBAR_BUTTONS: ['authentication', 'microphone', 'camera', 'desktop',
'chat', 'prezi', 'etherpad', 'fullscreen', 'sip', 'dialpad', 'settings', 'hangup', 'filmstrip', 'contacts'], 'recording', 'security', 'invite', 'chat', 'prezi', 'etherpad',
'fullscreen', 'sip', 'dialpad', 'settings', 'hangup', 'filmstrip',
'contacts'],
/** /**
* Whether to only show the filmstrip (and hide the toolbar). * Whether to only show the filmstrip (and hide the toolbar).
*/ */

View File

@ -6,7 +6,8 @@ var toolbarTimeoutObject,
UIUtil = require("../util/UIUtil"); UIUtil = require("../util/UIUtil");
function showDesktopSharingButton() { function showDesktopSharingButton() {
if (APP.desktopsharing.isDesktopSharingEnabled() && UIUtil.isButtonEnabled('desktop')) { if (APP.desktopsharing.isDesktopSharingEnabled() &&
UIUtil.isButtonEnabled('desktop')) {
$('#toolbar_button_desktopsharing').css({display: "inline-block"}); $('#toolbar_button_desktopsharing').css({display: "inline-block"});
} else { } else {
$('#toolbar_button_desktopsharing').css({display: "none"}); $('#toolbar_button_desktopsharing').css({display: "none"});

View File

@ -106,7 +106,9 @@ var UIUtil = module.exports = {
hideDisabledButtons: function (mappings) { hideDisabledButtons: function (mappings) {
var selector = Object.keys(mappings) var selector = Object.keys(mappings)
.map(function (buttonName) { return UIUtil.isButtonEnabled(buttonName) ? null : mappings[buttonName]; }) .map(function (buttonName) {
return UIUtil.isButtonEnabled(buttonName)
? null : mappings[buttonName]; })
.filter(function (item) { return item; }) .filter(function (item) { return item; })
.join(','); .join(',');
$(selector).hide(); $(selector).hide();