From 33f9c46e1b1d22fdc5c7a737ba05d2979e089d51 Mon Sep 17 00:00:00 2001 From: Ibrahim Date: Fri, 30 Jun 2017 18:39:00 +0500 Subject: [PATCH] fix issue where video modal is not closed by clicking outside the video --- lms/static/js/leanModal.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lms/static/js/leanModal.js b/lms/static/js/leanModal.js index 45b4779de7..468a36706d 100644 --- a/lms/static/js/leanModal.js +++ b/lms/static/js/leanModal.js @@ -18,6 +18,10 @@ closeButton: null, position: 'fixed' }; + var overlay = '
'; + if ($('#lean_overlay').length === 0) { + $('body').append($(overlay)); + } options = $.extend(defaults, options); // eslint-disable-line no-param-reassign