Add event on complete Ajax load

Open more possibilities when you want to launch an operation at the end of the loading without adding complicated stuff

$(document).on('ajax_onComplete.bs.modal', function() {
    $('.modal').modal('layout');
});

Done !!

:)