Merge pull request #15442 from edx/ibrahimahmed443/WL-1087-video-issue

fix issue where video modal is not closed by clicking outside the video
This commit is contained in:
Ibrahim Ahmed
2017-07-03 19:26:43 +05:00
committed by GitHub

View File

@@ -18,6 +18,10 @@
closeButton: null,
position: 'fixed'
};
var overlay = '<div id="lean_overlay"></div>';
if ($('#lean_overlay').length === 0) {
$('body').append($(overlay));
}
options = $.extend(defaults, options); // eslint-disable-line no-param-reassign