Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #310408

    Hi,

    I got a custom modal dialog (DIV container, position “fixed”, centered in the middle of the browser viewport) as login window that is show or hidden via JavaScript. The corresponding hyperlink “Login” which opens the modal dialog via JavaScript is located in the main menu. So far, everything works fine.

    Only when the menu is displayed as mobile menu, clicking on “Login” just closes the mobile menu, but does not show the modal dialog.

    I don’t know how to resolve this. Can you please help?

    Thanks!

    • This topic was modified 10 years, 4 months ago by Simon.
    #310420

    Hey Simon!

    Can you post the link to your website? We do not support custom codes but we would gladly take a quick look.

    Best regards,
    Yigit

    #311044
    This reply has been marked as private.
    #311048
    This reply has been marked as private.
    #311172

    Hi!

    Thank you for the info.

    Try to change the script with this:

    jQuery(window).load(function(){
    	// Find pseudo hyperlinks in DOM & assign corresponding JavaScript functionality	
    	jQuery('#menu-item-3347 a').click(function(e){
    		e.preventDefault();
    		alert('Testlink clicked.');
    	});
    });

    Cheers!
    Ismael

    #311225
    This reply has been marked as private.
    #311266
    This reply has been marked as private.
Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Closing the mobile menu closes modal dialog as well’ is closed to new replies.