So, I\'m using this code to open another modal window in a current opened modal window:
$(document).on('hidden.bs.modal', function (event) { if ($('.modal:visible').length) { $('body').addClass('modal-open'); } });