diff --git a/frontend/web/js/script.js b/frontend/web/js/script.js index 6373ae7..33976f6 100755 --- a/frontend/web/js/script.js +++ b/frontend/web/js/script.js @@ -11,6 +11,12 @@ $(document).ready( function() { $(this).parent().find('.spoiler').toggle(500); + if($(this).hasClass('opened')) { + $('.more a').text('Узнать больше'); + } else { + $('.more a').text('Скрыть'); + } + $(this).toggleClass('opened'); return false; } ); -- libgit2 0.21.4