On my ASP.NET MVC website I have the following inside my layout.cshtml:
$(document).ajaxStart(function () {
$(".modal").fadeIn(300)
});
$(document).ajaxStop(function () {
$(".modal").fadeOut(300);
});
The .modal class is basically a div that shows a gif with a typical animation inside.
So I don't want this animation to appear on all my ajax calls. Is there anyway to know which specific ajax call is raising this event?
The other option would be to manually handle it inside all my ajax calls, but since I only have 1 ajax call that I want to exclude it doesn't make sense.
Thanks