Skip to content

Instantly share code, notes, and snippets.

@graingert
Created September 3, 2012 12:50
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 graingert/3609116 to your computer and use it in GitHub Desktop.
Save graingert/3609116 to your computer and use it in GitHub Desktop.
("input[type=submit][name=_method][value=DELETE]").submit(function(event){
event.preventDefault();
$('#myModal .btn-danger').unbind("click").click(function(){
delete the item
$('#myModel').model("hide");
}
$('#myModel').model("show");
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment