diff static/js/sat_website.js @ 54:d54f2f09a73a

fixes displaying two carousels on the same page
author souliane <souliane@mailoo.org>
date Tue, 05 May 2015 11:03:18 +0200
parents 9d553570cc61
children
line wrap: on
line diff
--- a/static/js/sat_website.js	Tue May 05 09:47:55 2015 +0200
+++ b/static/js/sat_website.js	Tue May 05 11:03:18 2015 +0200
@@ -14,20 +14,4 @@
         }
     });
 
-    // open the big gallery when a thumbnail is clicked
-    $('#carousel-screenshots .thumbnail').click(function() {
-        $('#modal-screenshots').modal('show');
-        index = parseInt($(this).attr('index'));
-        $('#carousel-screenshots-modal').carousel(index);
-        // start playing the big video
-        if ($(this)[0].tagName == 'VIDEO') {
-           $('#carousel-screenshots-modal img, #carousel-screenshots-modal video')[index].play();
-        }
-    });
-    
-    // thumbail's video starts playing when clicked, pause it
-    $('#carousel-screenshots video.thumbnail').each(function(index) {
-        $(this).on('play', function(e) { $(this)[0].pause(); });
-    });
-
 });