Skip to content

Instantly share code, notes, and snippets.

@jonathanpath
Created August 18, 2015 12:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonathanpath/30da76b5854f686481db to your computer and use it in GitHub Desktop.
Save jonathanpath/30da76b5854f686481db to your computer and use it in GitHub Desktop.
jQuery all zone redirect to glogal link except links
// 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