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
radiopanik
panikweb
Commits
8acb2686
Commit
8acb2686
authored
Nov 13, 2013
by
fred
Browse files
display full episode image on clicks
parent
03fd40e4
Changes
2
Hide whitespace changes
Inline
Side-by-side
panikweb_templates/static/js/specifics.js
View file @
8acb2686
...
...
@@ -409,6 +409,13 @@ $(function() {
$
(
'
#nav-search a
'
).
unbind
(
'
click
'
).
on
(
'
click
'
,
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
)
{
panikdb_path
=
null
;
if
(
window
.
location
.
pathname
.
indexOf
(
'
/emissions/
'
)
==
0
)
{
...
...
panikweb_templates/templates/episodes/detail.html
View file @
8acb2686
...
...
@@ -38,9 +38,7 @@
{% endif %}
<div
class=
"content userContent marged"
>
{% if episode.image %}
<div
class=
"logo right"
>
<img
src=
"{{ episode.image|thumbnail:'640x480' }}"
/>
</div>
<img
class=
"logo right button"
data-toggle-img=
"/media/{{episode.image}}"
src=
"{{ episode.image|thumbnail:'640x480' }}"
/>
{% endif %}
{% if episode.subtitle %}
<div
class=
"description"
>
...
...
Write
Preview
Supports
Markdown
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