fixed quoting in ajax call

removed href since onclick seems to work fine
This commit is contained in:
Erhard 2017-08-03 17:27:48 +02:00
parent 26bb3dca85
commit 4aa9f92848

View File

@ -38,7 +38,7 @@
<section id="sounds"> <section id="sounds">
<div><input type="text" id="search" autofocus/><span id="reset"></span></div> <div><input type="text" id="search" autofocus/><span id="reset"></span></div>
{% for sound in sounds %} {% for sound in sounds %}
<div class="sound"><a href="{{ '/play/' + sound | urlencode }}" onclick="ajaxRequest({{ sound | urlencode }});">{{ sound.split('.', 1)[0] }}</a></div> <div class="sound"><a onclick="ajaxRequest('{{ sound | urlencode }}');">{{ sound.split('.', 1)[0] }}</a></div>
{% endfor %} {% endfor %}
</section> </section>
<section id="youtube"> <section id="youtube">