The loading spinner will not be displayed whenever the events are fetched.

This commit is contained in:
Alex Tselegidis 2016-08-11 21:24:37 +02:00
parent cef87016dc
commit 3272beb134

View file

@ -787,7 +787,17 @@ window.BackendCalendarTableView = window.BackendCalendarTableView || {};
endDate: endDate.toString('yyyy-MM-dd')
};
return $.post(url, data);
return $.ajax({
url: url,
data: data,
method: 'POST',
beforeSend: function() {
$('#loading').css('visibility', 'hidden');
},
complete: function() {
$('#loading').css('visibility', '');
}
});
}
/**