Skip to content

Instantly share code, notes, and snippets.

@dviramontes
Created August 22, 2013 17:28
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 dviramontes/6310261 to your computer and use it in GitHub Desktop.
Save dviramontes/6310261 to your computer and use it in GitHub Desktop.
makes anything with class .clickable, clickable
$(".clickable").click(function(event) {
event.preventDefault();
if ($(this).data().href) {
return window.open($(this).data().href, "_self");
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment