From b6ba3f7fd7badafe1967a03303334a858db29d83 Mon Sep 17 00:00:00 2001 From: Eugeny Galkovskiy Date: Fri, 10 Nov 2017 11:20:15 +0200 Subject: [PATCH] modal1 --- frontend/web/css/custom.css | 5 +++++ frontend/web/js/modal.js | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/frontend/web/css/custom.css b/frontend/web/css/custom.css index 6b9f0d0..11cd9d5 100755 --- a/frontend/web/css/custom.css +++ b/frontend/web/css/custom.css @@ -484,6 +484,11 @@ div.modal-title{ max-width: 720px; margin: 0 auto; } +.success_.done_{ + opacity: 1!important; + display: block; + z-index: 99999; +} @media (max-width: 991px) { .footer-copyrights{ margin-top:0; diff --git a/frontend/web/js/modal.js b/frontend/web/js/modal.js index 7fbf938..c12d3b6 100755 --- a/frontend/web/js/modal.js +++ b/frontend/web/js/modal.js @@ -63,8 +63,8 @@ $( // $(".modal-dialog").append(data.alert); // setTimeout(function(){location.reload()}, 5000); $(".close").click(); - $(".success_").animate({opacity: 1, top: '40', display: 'block'}, 200).addClass("done_"); - setTimeout(function(){$(".success_").animate({opacity: 0, top: '0', display: 'none'}, 200,function(){ + $(".success_").animate({opacity: 1, top: '40'}, 200).addClass("done_"); + setTimeout(function(){$(".success_").animate({opacity: 0, top: '0'}, 200,function(){ $(this).removeClass("done_"); })}, 4000); -- libgit2 0.21.4