Commit bd6c0144 authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review

Merge "Bug 1817326: Modal in a Modal popup problem" into 18.10_STABLE

parents 757ba5e6 cea4728f
......@@ -124,6 +124,15 @@ $javascript = <<<EOF
function editgoalsandskills_callback(form, data) {
editgoalsandskills_filebrowser.callback(form, data);
};
$(function($) {
$('#page-modal').on('hidden.bs.modal', function (e) {
// check if the upload file modal is still visible and if so put the body class back to allow scrolling
if ($('#editgoalsandskills_filebrowser_upload_browse').hasClass('show')) {
$('body').addClass('modal-open');
}
});
});
EOF;
$smarty = smarty(array(), array(), array(), array(
......
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