August 15, 201313 yr URL: http://www.woundlife.com/aug2013/worldnews/eng-GB/ Please click the purple arrow on the page above. In the pop up you will see a URL - I can't open this because when I click it it closes the modal window. How do I fix this? Thanks guys!
August 15, 201313 yr Looking at your code I think something like this should work $('.overlay, .overlay .close').on('click',function(e) { if ($(e.target).closest('a:not(.close)').length) { } else { e.preventDefault(); $('.overlay').fadeOut(500); $('.world-pop').hide(); } });
August 15, 201313 yr I was going to suggest that the default JS is closing on click so you would need some code (perhaps a div/part of the JS) to stop this from happening. There may already be a function/variable in the code that you could wrap the link in
Create an account or sign in to comment