Vote count:
0
I use something like the following for handling an ajax loading timer:
$body = $("body");
$(document).on({
ajaxStart: function() { $body.addClass("loading"); },
ajaxStop: function() { $body.removeClass("loading"); }
});
but there are some specific calls where I want this suppressed. How would I do this? I don't want to manually removed the loading class.
asked 1 min ago
Aucun commentaire:
Enregistrer un commentaire