From: Radek Czajka Date: Tue, 26 Sep 2023 12:37:23 +0000 (+0200) Subject: fix X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/cf76dbd53927cb38154845748fb3481cf013970f?hp=cf4049b3e2a405df73926d3a806f715de685b5cb fix --- diff --git a/src/wolnelektury/static/js/main.js b/src/wolnelektury/static/js/main.js index d231b40a6..acc38a933 100644 --- 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'); - $(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 {