Merge pull request #565 from damencho/dock-toolbar-on-shared-video
Docks toolbar when shared video is shown.
This commit is contained in:
commit
2ef9412a01
|
@ -333,6 +333,7 @@ class SharedVideoContainer extends LargeContainer {
|
||||||
self.bodyBackground = document.body.style.background;
|
self.bodyBackground = document.body.style.background;
|
||||||
document.body.style.background = 'black';
|
document.body.style.background = 'black';
|
||||||
this.$iframe.css({opacity: 1});
|
this.$iframe.css({opacity: 1});
|
||||||
|
ToolbarToggler.dockToolbar(true);
|
||||||
resolve();
|
resolve();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -340,6 +341,7 @@ class SharedVideoContainer extends LargeContainer {
|
||||||
|
|
||||||
hide () {
|
hide () {
|
||||||
let self = this;
|
let self = this;
|
||||||
|
ToolbarToggler.dockToolbar(false);
|
||||||
return new Promise(resolve => {
|
return new Promise(resolve => {
|
||||||
this.$iframe.fadeOut(300, () => {
|
this.$iframe.fadeOut(300, () => {
|
||||||
document.body.style.background = self.bodyBackground;
|
document.body.style.background = self.bodyBackground;
|
||||||
|
|
Loading…
Reference in New Issue