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
61e321d5
Commit
61e321d5
authored
May 31, 2015
by
fred
Browse files
also run gallery js code on ajax page load
parent
81c704ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
panikweb_templates/static/js/specifics.js
View file @
61e321d5
...
...
@@ -506,6 +506,17 @@ $(function() {
$
(
'
<a id="panikdb" href="http://panikdb.radiopanik.org
'
+
panikdb_path
+
'
">Voir dans PanikDB</a>
'
).
appendTo
(
$main
);
}
}
$
(
'
.gallery
'
).
each
(
function
()
{
var
$gallery
=
$
(
this
);
$gallery
.
find
(
'
span
'
).
on
(
'
click
'
,
function
()
{
$gallery
.
find
(
'
div.first img
'
).
attr
(
'
src
'
,
$
(
this
).
data
(
'
image-large
'
));
$gallery
.
find
(
'
div.first
'
).
show
(
'
fade
'
);
return
false
;
});
$gallery
.
find
(
'
div.first
'
).
on
(
'
click
'
,
function
()
{
$
(
this
).
toggle
(
'
fade
'
);
return
false
;
});
});
}
init
();
...
...
@@ -532,14 +543,4 @@ $(function() {
$waveform
.
find
(
'
span.done:last
'
).
addClass
(
'
current
'
);
});
$
(
'
.gallery
'
).
each
(
function
()
{
var
$gallery
=
$
(
this
);
$gallery
.
find
(
'
span
'
).
on
(
'
click
'
,
function
()
{
$gallery
.
find
(
'
div.first img
'
).
attr
(
'
src
'
,
$
(
this
).
data
(
'
image-large
'
));
$gallery
.
find
(
'
div.first
'
).
show
(
'
fade
'
);
return
false
;
});
$gallery
.
find
(
'
div.first
'
).
on
(
'
click
'
,
function
()
{
$
(
this
).
toggle
(
'
fade
'
);
return
false
;
});
});
});
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