From ad7b015bbf2e98163940f6ac6c7bb3ce529d7a3d Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Mon, 22 Sep 2014 20:24:17 -0400 Subject: [PATCH] CRM-15341 - D7 hack to get the toolbar out of the way We shouldn't have to do this, but for the sake of our UX here's a hack to fix the incompatability between the Drupal toolbar and jQuery UI. --- js/Common.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/Common.js b/js/Common.js index 55eeca3d97..8dfdaf2d6a 100644 --- a/js/Common.js +++ b/js/Common.js @@ -553,11 +553,15 @@ CRM.strings = CRM.strings || {}; e.preventDefault(); }); } + // FIXME: D7 hack to get the toolbar out of the way (CRM-15341) + if (CRM.config.userFramework === 'Drupal') $('#toolbar').css('z-index', '100'); }) .on('dialogclose', function(e) { // Restore scrollbars when closing modal if ($('.ui-dialog .modal-dialog:visible').not(e.target).length < 1) { $('body').css({overflow: ''}); + // FIXME: D7 hack, restore toolbar (CRM-15341) + if (CRM.config.userFramework === 'Drupal') $('#toolbar').css('z-index', ''); } }) .on('submit', function(e) { -- 2.25.1