Created
August 18, 2015 12:05
-
-
Save jonathanpath/30da76b5854f686481db to your computer and use it in GitHub Desktop.
jQuery all zone redirect to glogal link except links
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Teaser all zone clickable | |
$('.teaser').click(function(event){ | |
if(!$(event.target).is('a')) { | |
document.location.href = $(this).find('.teaser-title a').attr('href'); | |
return false; | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment