mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-12-22 22:52:35 +03:00
The loading spinner will not be displayed whenever the events are fetched.
This commit is contained in:
parent
cef87016dc
commit
3272beb134
1 changed files with 11 additions and 1 deletions
|
@ -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', '');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue