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
1 changed files with 11 additions and 1 deletions

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', '');
}
});
}
/**