From 2c608ecea3fdcd93de37f3d4d5716d42c40b3e80 Mon Sep 17 00:00:00 2001 From: Dan Cruson Date: Sat, 13 Dec 2014 15:24:23 -0500 Subject: [PATCH] File adjustments per Coleman Make changes to the file based on feedback from Coleman --- js/crm.joomla.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/js/crm.joomla.js b/js/crm.joomla.js index 07fa8f9d02..331d30ffcc 100644 --- a/js/crm.joomla.js +++ b/js/crm.joomla.js @@ -1,7 +1,14 @@ +// http://civicrm.org/licensing CRM.$(function($) { $(document) - .on('dialogopen', function(e) { + .on('dialogopen', function(e) { // J3 - Make footer admin bar hide behind popup windows (CRM-15723) $('#status').css('z-index', '100'); }) + .on('dialogclose', function(e) { + if ($('.ui-dialog-content:visible').not(e.target).length < 1) { + // D7 hack, restore toolbar position (CRM-15341) + $('#toolbar').css('z-index', ''); + } + }) }); -- 2.25.1