2014-08-22 15:37:11 +00:00
|
|
|
var BottomToolbar = (function (my) {
|
|
|
|
my.toggleChat = function() {
|
|
|
|
if (ContactList.isVisible()) {
|
|
|
|
buttonClick("#contactListButton", "active");
|
2014-09-30 12:48:05 +00:00
|
|
|
$('#contactlist').css('z-index', 4);
|
|
|
|
setTimeout(function() {
|
|
|
|
$('#contactlist').css('display', 'none');
|
|
|
|
$('#contactlist').css('z-index', 5);
|
|
|
|
}, 500);
|
2014-08-22 15:37:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
Chat.toggleChat();
|
2014-10-02 09:30:46 +00:00
|
|
|
|
|
|
|
buttonClick("#chatBottomButton", "active");
|
2014-08-22 15:37:11 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
my.toggleContactList = function() {
|
|
|
|
if (Chat.isVisible()) {
|
|
|
|
buttonClick("#chatBottomButton", "active");
|
2014-09-30 12:48:05 +00:00
|
|
|
setTimeout(function() {
|
|
|
|
$('#chatspace').css('display', 'none');
|
|
|
|
}, 500);
|
2014-08-22 15:37:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
buttonClick("#contactListButton", "active");
|
|
|
|
|
|
|
|
ContactList.toggleContactList();
|
|
|
|
};
|
|
|
|
|
2014-09-04 08:15:48 +00:00
|
|
|
my.toggleFilmStrip = function() {
|
2014-09-08 15:34:56 +00:00
|
|
|
var filmstrip = $("#remoteVideos");
|
|
|
|
filmstrip.toggleClass("hidden");
|
2014-09-04 08:15:48 +00:00
|
|
|
};
|
|
|
|
|
2014-08-22 15:37:11 +00:00
|
|
|
$(document).bind("remotevideo.resized", function (event, width, height) {
|
|
|
|
var bottom = (height - $('#bottomToolbar').outerHeight())/2 + 18;
|
|
|
|
|
|
|
|
$('#bottomToolbar').css({bottom: bottom + 'px'});
|
|
|
|
});
|
|
|
|
|
|
|
|
return my;
|
|
|
|
}(BottomToolbar || {}));
|