Commit 5c1f9d94 authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review
Browse files

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

parents 2f6f8f06 af790cac
...@@ -124,6 +124,15 @@ $javascript = <<<EOF ...@@ -124,6 +124,15 @@ $javascript = <<<EOF
function editgoalsandskills_callback(form, data) { function editgoalsandskills_callback(form, data) {
editgoalsandskills_filebrowser.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; EOF;
$smarty = smarty(array(), array(), array(), array( $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