diff --git a/src/assets/js/backend_calendar_table_view.js b/src/assets/js/backend_calendar_table_view.js index afa2293f..7757c32e 100644 --- a/src/assets/js/backend_calendar_table_view.js +++ b/src/assets/js/backend_calendar_table_view.js @@ -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', ''); + } + }); } /**