From f4c8962da9d47f68cbaf71cc49dd421223ab5433 Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 20 Oct 2016 15:03:29 +0300 Subject: [PATCH] -Spoiler fix --- frontend/web/js/script.js | 6 ++++++ 1 file changed, 6 insertions(+), 0 deletions(-) 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