Skip to content

Instantly share code, notes, and snippets.

@aseredenko
Created June 27, 2016 12:26
Show Gist options
  • Save aseredenko/f932c1c962500bbf830427178d68ae43 to your computer and use it in GitHub Desktop.
Save aseredenko/f932c1c962500bbf830427178d68ae43 to your computer and use it in GitHub Desktop.
Add "modal-open" class when hid one modal box and show another. Bootstrap
$(document).on('hidden.bs.modal', function (event) {
if ($('.modal:visible').length) {
$('body').addClass('modal-open');
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment