dimanche 27 avril 2014

how to suppress a global ajaxStart / ajaxStop for a specific ajax call


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

timpone

2,984





Aucun commentaire:

Enregistrer un commentaire