Pārlūkot izejas kodu

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

j8
damencho 9 gadus atpakaļ
vecāks
revīzija
9e7275acfb
1 mainītis faili ar 4 papildinājumiem un 0 dzēšanām
  1. 4
    0
      modules/UI/shared_video/SharedVideo.js

+ 4
- 0
modules/UI/shared_video/SharedVideo.js Parādīt failu

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

Notiek ielāde…
Atcelt
Saglabāt