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