Im a little bit confuse about firing a call back function in javascript modal of bootstrap3. In normal jquery.post you can do it like,
jquery.post
$.post(\
I think better will be, to use "shown.bs.modal" it is fiered when modal is allready loaded. Bootstrap modal events
$('#myModal').on('shown.bs.modal', function (e) { alert('modal is allready shown'); });