Commit b50d0ac3 authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

(mvc) fix focus issues when stacking dialogs

(cherry picked from commit c2f56d53)
parent a47a039c
......@@ -196,6 +196,13 @@ function addMultiSelectClearUI() {
$('select[id="' + id + '"]').find('option').prop('selected',false);
}
}
// In case this modal was triggered from another modal, fix focus issues
$('.modal').on("hidden.bs.modal", function (e) {
if($('.modal:visible').length)
{
$('body').addClass('modal-open');
}
});
}
});
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment