Updates large video when user left and we are removing the shared video.

This commit is contained in:
damencho 2016-03-18 17:21:41 -05:00
parent ba01733c4f
commit 9e7275acfb
1 changed files with 4 additions and 0 deletions

View File

@ -380,6 +380,10 @@ SharedVideoThumb.prototype.videoClick = function () {
SharedVideoThumb.prototype.remove = function () { SharedVideoThumb.prototype.remove = function () {
console.log("Remove shared video thumb", this.id); console.log("Remove shared video thumb", this.id);
// Make sure that the large video is updated if are removing its
// corresponding small video.
this.VideoLayout.updateRemovedVideo(this.id);
// Remove whole container // Remove whole container
if (this.container.parentNode) { if (this.container.parentNode) {
this.container.parentNode.removeChild(this.container); this.container.parentNode.removeChild(this.container);