X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/075fb07f19c2f20cd3b6818b973e7aebebdacc9f..c38cfacc4f2cdb7a9e702d0b7b46978089413677:/wolnelektury/static/js/player.js?ds=sidebyside

diff --git a/wolnelektury/static/js/player.js b/wolnelektury/static/js/player.js
index fea845029..69dceed55 100755
--- a/wolnelektury/static/js/player.js
+++ b/wolnelektury/static/js/player.js
@@ -1,11 +1,12 @@
 (function($) {
     $(function() {
 
-
-        $("#jplayer").jPlayer({
+      $("#jplayer").each(function() {
+      	var $self = $(this);
+        $self.jPlayer({
             swfPath: "/static/jplayer/",
             solution: "html,flash",
-            supplied: $(this).attr('data-supplied'),
+            supplied: $self.attr('data-supplied'),
     
             ready: function() {
                 var player = $(this);
@@ -27,7 +28,7 @@
                 });
             }
         });
-
+      });
 
     });
 })(jQuery)
\ No newline at end of file