Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass arguments to AJAX_SUCCESS and AJAX_FAIL #118

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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