Skip to content

Instantly share code, notes, and snippets.

@alexcrichton
Created October 24, 2010 19:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save alexcrichton/643854 to your computer and use it in GitHub Desktop.
Save alexcrichton/643854 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>test</title>
<script src="http://code.jquery.com/jquery-1.4.3.js" type="text/javascript"></script>
<script src="http://github.com/alexcrichton/jquery-ujs/raw/master/src/rails.js" type="text/javascript"></script>
<script type="text/javascript" charset="utf-8">
$(document).ready(function(){
$('#login_link').click(function(){
$('#modal_form').modal();
});
$(".clickable a").live("click", function(event){
event.stopPropagation();
});
$(".clickable").live("click", function(event){
window.location=$(this).find("a").filter(".real_link").attr("href");
event.preventDefault();
});
});
</script>
</head>
<body>
<a rel="nofollow" data-method="delete" data-confirm="Sure?" href="/path/to/nowhere">Destroy</a>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment