I'm trying to implement modal loading dialog with Twitter's bootstrap. My current attemp is:
$(document).ready(function () {
$('#loading_dialog')
.ajaxStart(function () {
$(this).modal('show');
})
.ajaxStop(function () {
$(this).modal('hide');
});
});
Problem is that the dialog won't close.