Merge pull request #565 from damencho/dock-toolbar-on-shared-video

Docks toolbar when shared video is shown.
This commit is contained in:
yanas 2016-03-29 15:58:28 -05:00
commit 2ef9412a01
1 changed files with 2 additions and 0 deletions

View File

@ -333,6 +333,7 @@ class SharedVideoContainer extends LargeContainer {
self.bodyBackground = document.body.style.background;
document.body.style.background = 'black';
this.$iframe.css({opacity: 1});
ToolbarToggler.dockToolbar(true);
resolve();
});
});
@ -340,6 +341,7 @@ class SharedVideoContainer extends LargeContainer {
hide () {
let self = this;
ToolbarToggler.dockToolbar(false);
return new Promise(resolve => {
this.$iframe.fadeOut(300, () => {
document.body.style.background = self.bodyBackground;