KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
So, within one of my views, I've got this function: delete_model: function() { var answer = confirm("Are you sure you want to delete this element?"); if (answer) { this.model.destroy({ success: function() { console.log("delete was a success"); } }); } }); When I ping that, the Ajax call goes out, the backend properly deletes the model and returns a 200 header with "OK" as the body...but the success event never fires. Am I missing something? What should I have the backend serve to fire that event?
Tags (comma-separated)
Save Edits
Cancel