jquery-modal icon indicating copy to clipboard operation
jquery-modal copied to clipboard

Pass arguments to AJAX_SUCCESS and AJAX_FAIL

Open xfra35 opened this issue 9 years ago • 3 comments

Usage:

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

xfra35 avatar Aug 28 '15 14:08 xfra35

:up:

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

xfra35 avatar Dec 02 '16 17:12 xfra35

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 avatar Dec 12 '16 01:12 kylefox

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

kylefox avatar Dec 12 '16 01:12 kylefox