Commit 373bd618 authored by Simon Daron's avatar Simon Daron
Browse files

Audio control

parent e564f328
......@@ -15,7 +15,7 @@ $(function() {
});
});
});
$("[data-audio]").each(function() {
$("[data-audio-control]").each(function() {
var playPauseButton = $(this).find('.playpause');
var audio = $('#'+$(this).attr('data-audio'));
var audioElement = audio[0];
......
{% if file.url %}
<span class="audioControls small" data-audio="Audio-{{ file.url|slugify }}">
<span class="audioControls small" data-audio-control="Audio-{{ file.url|slugify }}">
<button class="playpause icon-play">{{ file.content_types }}</button>
<a class="icon-download" href="{{ file.url }}"></a>
</span>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment