Commit b0159bc4a94fddcc26cdf022a354966bf7953670
1 parent
b3ba9cf2
modal styles and script
Showing
3 changed files
with
13 additions
and
0 deletions
Show diff stats
css/modal.css
| @@ -59,6 +59,7 @@ | @@ -59,6 +59,7 @@ | ||
| 59 | display: none; | 59 | display: none; |
| 60 | left: 0; | 60 | left: 0; |
| 61 | width: 100%; | 61 | width: 100%; |
| 62 | + z-index: 99999; | ||
| 62 | } | 63 | } |
| 63 | .success_ .forms_wr_ { | 64 | .success_ .forms_wr_ { |
| 64 | box-shadow: 0px 0px 35px rgba(0, 0, 0, 0.34); | 65 | box-shadow: 0px 0px 35px rgba(0, 0, 0, 0.34); |
js/modal.js
| @@ -54,5 +54,16 @@ $( | @@ -54,5 +54,16 @@ $( | ||
| 54 | $(".overlay-new").click(function(){ | 54 | $(".overlay-new").click(function(){ |
| 55 | $(".close").click(); | 55 | $(".close").click(); |
| 56 | }); | 56 | }); |
| 57 | + $("#success-modal button.btn.btn-template-primary").click(function(){ | ||
| 58 | + $(".close").click(); | ||
| 59 | + $('#success_form').animate({opacity: 0, top: '0'}, 200,function(){ | ||
| 60 | + $(this).css('display', 'none'); | ||
| 61 | + $(this).css({top:'50%'}); | ||
| 62 | + }); | ||
| 63 | + $('#success-modal').animate({opacity: 0, top: '0'}, 200,function(){ | ||
| 64 | + $(this).css('display', 'none'); | ||
| 65 | + $(this).css({top:'50%'}); | ||
| 66 | + }); | ||
| 67 | + }); | ||
| 57 | } | 68 | } |
| 58 | ); | 69 | ); |
| 59 | \ No newline at end of file | 70 | \ No newline at end of file |