From 5a6148a03697fea5a52b996b064cb8f1979ba9ee Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Mon, 9 Jun 2014 14:59:53 +0100 Subject: [PATCH] Ensure scrollbars are restored when closing modal dialog --- js/Common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: ''}); } }) -- 2.25.1