Commit ba19b883 authored by imac's avatar imac

[Bugix]JIRA : NAP-59 -> Stop close menu when open login popup on desktop

parent 30690bbb
...@@ -2452,6 +2452,9 @@ div.wpcf7-mail-sent-ok{ ...@@ -2452,6 +2452,9 @@ div.wpcf7-mail-sent-ok{
z-index: 99999999; z-index: 99999999;
display: none; display: none;
background: rgba(18,22,45,0.5); background: rgba(18,22,45,0.5);
bottom: 0;
left: 0;
right: 0;
} }
.popup { .popup {
width: 365px; width: 365px;
......
...@@ -166,8 +166,11 @@ $.fn.loadPageContent = function(){ ...@@ -166,8 +166,11 @@ $.fn.loadPageContent = function(){
}); });
$(document).on('click','.acces li .login, .login-user',function(e){ $(document).on('click','.acces li .login, .login-user',function(e){
e.stopImmediatePropagation(); e.stopImmediatePropagation();
var windowWidth = $(window).width();
$('.popup-container').fadeIn(); $('.popup-container').fadeIn();
if (windowWidth < 860){
$( ".c-hamburger" ).trigger( "click" ); $( ".c-hamburger" ).trigger( "click" );
}
// $('#user_login').attr('placeholder', 'Identifiant'); // $('#user_login').attr('placeholder', 'Identifiant');
// $('#user_pass').attr('placeholder', 'Mot de passe'); // $('#user_pass').attr('placeholder', 'Mot de passe');
$('.popup-first').removeClass('fadeOutDown ').addClass('animated visible-elem pulse'); $('.popup-first').removeClass('fadeOutDown ').addClass('animated visible-elem pulse');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment