Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Simon Daron
panikweb
Commits
1bea1d48
Commit
1bea1d48
authored
Dec 28, 2013
by
fred
Browse files
fix reveal download links code to work when the same sound exists several times
parent
b8859b01
Changes
1
Hide whitespace changes
Inline
Side-by-side
panikweb_templates/templates/includes/audio.html
View file @
1bea1d48
...
...
@@ -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"
>
ogg
</span>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment