From 40e06695a518720373df1faccaa2de4865fd89bc Mon Sep 17 00:00:00 2001 From: icemate Date: Tue, 3 Nov 2015 17:04:26 +0200 Subject: [PATCH] first --- frontend/views/site/vacancies.php | 32 +++++++++++++++----------------- 1 file changed, 15 insertions(+), 17 deletions(-) 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 () {