Skip to content

Conversation

@xfra35
Copy link
Contributor

@xfra35 xfra35 commented Aug 28, 2015

Usage:

$('#ajax-link').on('modal:ajax:fail',function(event,jqXHR,textStatus,errorThrown){
  //analyze here why ajax failed
});

@xfra35
Copy link
Contributor Author

xfra35 commented Dec 2, 2016

🆙

Here's a use case: to give the ability to customize error messages according to the HTTP status (404, 403, 401, 400, 500).

@kylefox
Copy link
Owner

kylefox commented Dec 12, 2016

You're right, this is a good idea — if you're able to get it to merge cleanly I'll be happy to pull it in 👍

@kylefox
Copy link
Owner

kylefox commented Dec 12, 2016

BTW sorry I missed your original PR, not sure how/why I didn't see it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants