Commit 1bea1d48 authored by fred's avatar fred
Browse files

fix reveal download links code to work when the same sound exists several times

parent b8859b01
......@@ -15,9 +15,9 @@
<button class="resymbol icon-download big"
title="Download file"
onclick="$('#Download-{{ sound.file.url|slugify }}').toggle();return false;"
onclick="$(this).next().toggle();return false;"
></button>
<div class="hidden" id="Download-{{ sound.file.url|slugify }}" >
<div class="hidden">
{% if sound|is_format_available:'ogg' %}
<a target="_blank" class="button inBlock" href="{{ sound|format_url:'ogg' }}">
<span class="icon-file">&nbsp;ogg</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