Corrected loading selector use.

This commit is contained in:
Alex Tselegidis 2020-04-06 20:48:11 +02:00
parent 488860f9fe
commit 6b83cc6083

View file

@ -852,7 +852,7 @@ window.BackendCalendarDefaultView = window.BackendCalendarDefaultView || {};
};
$loading.css('visibility', 'hidden');
$('#loading').css('visibility', 'hidden');
return $.post(url, data, function (response) {
if (!GeneralFunctions.handleAjaxExceptions(response)) {
@ -1195,7 +1195,7 @@ window.BackendCalendarDefaultView = window.BackendCalendarDefaultView || {};
}, 'json')
.fail(GeneralFunctions.ajaxFailureHandler)
.always(function() {
$loading.css('visibility', '')
$('#loading').css('visibility', '')
});
}