I'm trying to detect when a modal opens so i can set the content height but simply does nothing.
Here's what I'm trying:
$('#bootModal').on('show', function () {
alert('foo'); // doesn't fire
$(this).find('.modal-body').css({
'height':$( window ).height()*0.8
});
});
Any ideas why it's not detecting the modal opening?