Created
June 27, 2016 12:26
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(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