From f281c300bab2d173f83c6da8714e8ad6a5927484 Mon Sep 17 00:00:00 2001 From: Sanj Date: Wed, 23 Feb 2011 15:40:15 +0100 Subject: [PATCH] fix same video not playing bug --- padmaTexts/static/js/views/sidebar.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/padmaTexts/static/js/views/sidebar.js b/padmaTexts/static/js/views/sidebar.js index e7f4f91..325eb63 100644 --- a/padmaTexts/static/js/views/sidebar.js +++ b/padmaTexts/static/js/views/sidebar.js @@ -69,14 +69,11 @@ function setupPadmaLink(videoObj, data) { // sidebarAnimateIn(); e.preventDefault(); var currentVideo = padmaContainer.data("currentVideo"); - if (currentVideo == videoObj) { - /* - if (!isSidebarVisible()) { - sidebarAnimateIn(); - } - */ + + if ($(this).hasClass("nowPlaying")) { return; } + if (currentVideo) { cleanupVideo(currentVideo); }