X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=js%2Fcrm.joomla.js;h=4d98804a05f13a0ac8a501cf86bd27e379143fe5;hb=58cb13f8bfa693af1dcf19e5eb24e13d77da2d14;hp=07fa8f9d028616a9972aff26e7d4f40a8fbb3902;hpb=f58e4c2e006dcfd2cef3a1e64c62d85851a8bda2;p=civicrm-core.git diff --git a/js/crm.joomla.js b/js/crm.joomla.js index 07fa8f9d02..4d98804a05 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) { + // J3 - restore footer admin bar position (CRM-15723) + $('#status').css('z-index', ''); + } + }); });