Skip to content

Instantly share code, notes, and snippets.

@niksmac
Created November 18, 2011 06:04
Show Gist options
  • Save niksmac/1375738 to your computer and use it in GitHub Desktop.
Save niksmac/1375738 to your computer and use it in GitHub Desktop.
Works on every ajax success from a page
$(document).ready( function () {
$('body:last-child').bind('ajaxSuccess', function() {
init_ajax_sucess();
});
});
function init_ajax_sucess() {
// Do something
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment