I just had an answer on how to do this:
CSS
body.ajaxloading { cursor:wait; }
jQuery
function enableLoadingIcon() {
$(body).addClass('ajaxloading');
}
function disableLoadingIcon() {
$(body).addClass('ajaxloading');
}
However when I try to implement it doesn’t seem to work. Can anyone see what the reason is ?
Alternatively, you wouldn’t have to declare the class in your CSS if you just manually injected the CSS using jQuery like so: