Created
November 18, 2011 06:04
-
-
Save niksmac/1375738 to your computer and use it in GitHub Desktop.
Works on every ajax success from a page
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(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