diff --git a/js/modal.js b/js/modal.js index 2c79a5d..fe82260 100644 --- a/js/modal.js +++ b/js/modal.js @@ -422,8 +422,9 @@ } } - if( $(target).is('#modalContent, body') || $(target).filter('*:visible').parents('#modalContent').length){ - // allow the event only if target is a visible child node of #modalContent + if ($(target).is('#modalContent, body') || $(target).filter('*:visible').parents('#modalContent').length) { + // Allow the event only if target is a visible child node + // of #modalContent. return true; } else {