Fixes jshint warnings in toolbar_toggler.js

This commit is contained in:
paweldomas 2014-11-28 16:17:13 +01:00
parent afaa96b737
commit ed2d7e4282
1 changed files with 15 additions and 11 deletions

View File

@ -1,3 +1,4 @@
/* global $, interfaceConfig, showDesktopSharingButton */
var ToolbarToggler = (function (my) {
var toolbarTimeoutObject,
toolbarTimeout = interfaceConfig.INITIAL_TOOLBAR_TIMEOUT;
@ -12,7 +13,8 @@ var ToolbarToggler = (function(my) {
header.show("slide", { direction: "up", duration: 300});
$('#subject').animate({top: "+=40"}, 300);
if (!bottomToolbar.is(":visible")) {
bottomToolbar.show("slide", {direction: "right",duration: 300});
bottomToolbar.show(
"slide", {direction: "right", duration: 300});
}
if (toolbarTimeoutObject) {
@ -23,9 +25,10 @@ var ToolbarToggler = (function(my) {
toolbarTimeout = interfaceConfig.TOOLBAR_TIMEOUT;
}
if (focus != null)
if (focus !== null)
{
// TODO: Enable settings functionality. Need to uncomment the settings button in index.html.
// TODO: Enable settings functionality.
// Need to uncomment the settings button in index.html.
// $('#settingsButton').css({visibility:"visible"});
}
@ -57,7 +60,8 @@ var ToolbarToggler = (function(my) {
header.hide("slide", { direction: "up", duration: 300});
$('#subject').animate({top: "-=40"}, 300);
if ($("#remoteVideos").hasClass("hidden")) {
bottomToolbar.hide("slide", {direction: "right", duration: 300});
bottomToolbar.hide(
"slide", {direction: "right", duration: 300});
}
}
else {