From: Coleman Watts Date: Mon, 9 Jun 2014 13:59:53 +0000 (+0100) Subject: Ensure scrollbars are restored when closing modal dialog X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=5a6148a03697fea5a52b996b064cb8f1979ba9ee;p=civicrm-core.git Ensure scrollbars are restored when closing modal dialog --- diff --git a/js/Common.js b/js/Common.js index 2681102e5e..44736662ea 100644 --- a/js/Common.js +++ b/js/Common.js @@ -505,7 +505,7 @@ CRM.validate = CRM.validate || { }) .on('dialogclose', function(e) { // Restore scrollbars when closing modal - if ($('.ui-dialog .modal-dialog').not(e.target).length < 1) { + if ($('.ui-dialog .modal-dialog:visible').not(e.target).length < 1) { $('body').css({overflow: ''}); } })