diff --git a/frontend/views/site/vacancies.php b/frontend/views/site/vacancies.php index ce7fce4..8d3a2d7 100644 --- a/frontend/views/site/vacancies.php +++ b/frontend/views/site/vacancies.php @@ -33,14 +33,11 @@ $(function () { event.preventDefault(); $('#overlay').fadeIn(400, function(){ - $('#modal_form') - .css('display', 'block') - .animate({opacity: 1, top: '50%'}, 200); + $('#modal_form').css('display', 'block').animate({opacity: 1, top: '50%'}, 200); }); }); - $('#modal_close, #overlay').click( function(){ - $('#modal_form') - .animate({opacity: 0, top: '45%'}, 200, // плавно меняем прозрачность на 0 и одновременно двигаем окно вверх + $('#overlay').click( function(){ + $('#modal_form').animate({opacity: 0, top: '45%'}, 200, function(){ $(this).css('display', 'none'); $('#overlay').fadeOut(400); @@ -457,17 +454,18 @@ $(function () {