From b0159bc4a94fddcc26cdf022a354966bf7953670 Mon Sep 17 00:00:00 2001 From: zhegal Date: Tue, 2 Jan 2018 17:57:17 +0200 Subject: [PATCH] modal styles and script --- css/modal.css | 1 + js/modal.js | 11 +++++++++++ js/submit.js | 1 + 3 files changed, 13 insertions(+), 0 deletions(-) diff --git a/css/modal.css b/css/modal.css index 3f9063b..6acf4de 100644 --- a/css/modal.css +++ b/css/modal.css @@ -59,6 +59,7 @@ display: none; left: 0; width: 100%; + z-index: 99999; } .success_ .forms_wr_ { box-shadow: 0px 0px 35px rgba(0, 0, 0, 0.34); diff --git a/js/modal.js b/js/modal.js index 65a6b45..5bf048a 100644 --- a/js/modal.js +++ b/js/modal.js @@ -54,5 +54,16 @@ $( $(".overlay-new").click(function(){ $(".close").click(); }); + $("#success-modal button.btn.btn-template-primary").click(function(){ + $(".close").click(); + $('#success_form').animate({opacity: 0, top: '0'}, 200,function(){ + $(this).css('display', 'none'); + $(this).css({top:'50%'}); + }); + $('#success-modal').animate({opacity: 0, top: '0'}, 200,function(){ + $(this).css('display', 'none'); + $(this).css({top:'50%'}); + }); + }); } ); \ No newline at end of file diff --git a/js/submit.js b/js/submit.js index 35627e8..9cbf1ab 100644 --- a/js/submit.js +++ b/js/submit.js @@ -48,6 +48,7 @@ $( } ); } + return false; } ); -- libgit2 0.21.4