alfajango/jquery-dynatable — pull request #132 by jasonl99 (2014-06-07 17:52:38+00:00)
Title: ajaxComplete and ajaxDone customization

I needed to have more flexibility with ajaxComplete and ajaxDone. The changes I've made allow you to swap in your own ajaxComplete and ajaxDone functions. In my case, I'm using jquery.when() to require additional data, and then further updating the data returned by the dynatable ajax requested.

Just create a handler for the dynatable:preinit function to swap in your functions.

$('.dynatable').on('dynatable:preinit', function(el, dyna) {
dyna.settings.ajax.ajaxSuccess = yourSuccessFunction;
return dyna.settings.ajax.ajaxDone = yourDoneFunction;
})

Be gentle, javascript is definitely not my strong suit :)