Commit 8acb2686 authored by fred's avatar fred
Browse files

display full episode image on clicks

parent 03fd40e4
...@@ -409,6 +409,13 @@ $(function() { ...@@ -409,6 +409,13 @@ $(function() {
$('#nav-search a').unbind('click').on('click', navsearch_click); $('#nav-search a').unbind('click').on('click', navsearch_click);
$('#nav-search form').unbind('submit').on('submit', navsearch_click); $('#nav-search form').unbind('submit').on('submit', navsearch_click);
$('[data-toggle-img]').bind('click', function() {
var src = $(this).data('toggle-img');
$(this).data('toggle-img', $(this).attr('src'));
$(this).attr('src', src);
$(this).toggleClass('right marged');
});
if (document.cookie.indexOf('panikdb=on') != -1) { if (document.cookie.indexOf('panikdb=on') != -1) {
panikdb_path = null; panikdb_path = null;
if (window.location.pathname.indexOf('/emissions/') == 0) { if (window.location.pathname.indexOf('/emissions/') == 0) {
......
...@@ -38,9 +38,7 @@ ...@@ -38,9 +38,7 @@
{% endif %} {% endif %}
<div class="content userContent marged"> <div class="content userContent marged">
{% if episode.image %} {% if episode.image %}
<div class="logo right"> <img class="logo right button" data-toggle-img="/media/{{episode.image}}" src="{{ episode.image|thumbnail:'640x480' }}"/>
<img src="{{ episode.image|thumbnail:'640x480' }}"/>
</div>
{% endif %} {% endif %}
{% if episode.subtitle %} {% if episode.subtitle %}
<div class="description"> <div class="description">
......
Supports Markdown
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