fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add pz field
[wolnelektury.git]
/
src
/
wolnelektury
/
static
/
js
/
main.js
diff --git
a/src/wolnelektury/static/js/main.js
b/src/wolnelektury/static/js/main.js
index
d231b40
..
acc38a9
100644
(file)
--- a/
src/wolnelektury/static/js/main.js
+++ b/
src/wolnelektury/static/js/main.js
@@
-323,7
+323,7
@@
button.on('click', function() {
let dataLabel = $(this).attr('data-label');
let dataAction = $(this).attr('data-action');
button.on('click', function() {
let dataLabel = $(this).attr('data-label');
let dataAction = $(this).attr('data-action');
- $(this).parent().find('.l-article__overlay').toggleClass('is-clicked');
+ $(this).parent().
parent().
find('.l-article__overlay').toggleClass('is-clicked');
if($(this).text() === dataLabel) {
$(this).text(dataAction);
} else {
if($(this).text() === dataLabel) {
$(this).text(dataAction);
} else {