#1005 - Правки по страницам

parent 2bb1a080
...@@ -49,15 +49,15 @@ $(document).ready(function() { ...@@ -49,15 +49,15 @@ $(document).ready(function() {
$('.dep_block__hide').hide(); $('.dep_block__hide').hide();
$('.dep_block_hide__btn').click(function(){ $('.dep_block_hide__btn').click(function(){
if ($('.dep_block_hide__btn').text() == 'Смотреть полную схему'){ if ($('.dep_block_hide__btn').text() == $(this).data('hide')){
$('.line_hide').fadeTo( "slow" , 0); $('.line_hide').fadeTo( "slow" , 0);
$('.dep_block__hide').slideDown(1000); $('.dep_block__hide').slideDown(1000);
$(this).text('Скрыть полную схему') $(this).text($(this).data('hide'))
} }
else { else {
$('.line_hide').fadeTo( "slow" , 1); $('.line_hide').fadeTo( "slow" , 1);
$('.dep_block__hide').slideUp(1000); $('.dep_block__hide').slideUp(1000);
$(this).text('Смотреть полную схему'); $(this).text($(this).data('show'));
} }
}); });
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment