Reputation: 190
ajaxStart function
is working correctly.But modal window does not hide in ajaxStop function
in jquery
.
This is my code
$(document).ajaxStop(function () {
$('#loading-modal').modal('hide');
});
There is a error
in console
.
Uncaught TypeError: $(...).modal is not a function
Upvotes: 1
Views: 164
Reputation: 618
Make sure your jquery
file or bootstrap.js
file overwriting again
.
sometimes it's the issue.
cheers.
Upvotes: 1