From: Dan Cruson Date: Sat, 13 Dec 2014 20:24:23 +0000 (-0500) Subject: File adjustments per Coleman X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=2c608ecea3fdcd93de37f3d4d5716d42c40b3e80;p=civicrm-core.git File adjustments per Coleman Make changes to the file based on feedback from Coleman --- 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', ''); + } + }) });