Commit f4c8962da9d47f68cbaf71cc49dd421223ab5433

Authored by Alexey Boroda
1 parent 9d355d72

-Spoiler fix

Showing 1 changed file with 6 additions and 0 deletions   Show diff stats
frontend/web/js/script.js
... ... @@ -11,6 +11,12 @@ $(document).ready(
11 11 function()
12 12 {
13 13 $(this).parent().find('.spoiler').toggle(500);
  14 + if($(this).hasClass('opened')) {
  15 + $('.more a').text('Узнать больше');
  16 + } else {
  17 + $('.more a').text('Скрыть');
  18 + }
  19 + $(this).toggleClass('opened');
14 20 return false;
15 21 }
16 22 );
... ...