// ajaxStart only fires when no other request is already in flight, so
// overlapping calls do not make the indicator flicker.
$('#spinner').on('ajaxStart', function () {
$(this).show();
}).on('ajaxStop', function () {
$(this).hide();
});
// ajaxStart only fires when no other request is already in flight, so
// overlapping calls do not make the indicator flicker.
$('#spinner').on('ajaxStart', function () {
$(this).show();
}).on('ajaxStop', function () {
$(this).hide();
});