Skip to content

Instantly share code, notes, and snippets.

@jacquescrocker
Forked from er1c/gist:1470440
Created December 13, 2011 03:42
Show Gist options
  • Save jacquescrocker/1470444 to your computer and use it in GitHub Desktop.
Save jacquescrocker/1470444 to your computer and use it in GitHub Desktop.
$(".resend_auth").live "click", (e) ->
e.preventDefault()
link = $(this)
$.ajax
url: link.attr("href")
dataType: "json"
success: (json) ->
alert(json.msg)
$(".resend_auth").live("click", function(e){
e.preventDefault();
var link = $(this);
$.ajax({
url: link.attr("href"),
dataType: "json",
success: function(json) {
alert(json.msg)
}
});
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment