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",
INVITATION_POWERED_BY: true,
ACTIVE_SPEAKER_AVATAR_SIZE: 100,
TOOLBAR_BUTTONS: ['authentication', 'microphone', 'camera', 'desktop', 'recording', 'security', 'invite',
'chat', 'prezi', 'etherpad', 'fullscreen', 'sip', 'dialpad', 'settings', 'hangup', 'filmstrip', 'contacts'],
TOOLBAR_BUTTONS: ['authentication', 'microphone', 'camera', 'desktop',
'recording', 'security', 'invite', 'chat', 'prezi', 'etherpad',
'fullscreen', 'sip', 'dialpad', 'settings', 'hangup', 'filmstrip',
'contacts'],
/**
* Whether to only show the filmstrip (and hide the toolbar).
*/

View File

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

View File

@ -106,7 +106,9 @@ var UIUtil = module.exports = {
hideDisabledButtons: function (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; })
.join(',');
$(selector).hide();