Commit b02b8e4d authored by colemanw's avatar colemanw

Simplify hiding CMS elements behind modal dialogs

Using css instead of js makes this a lot simpler
parent d1c5a34c
......@@ -844,15 +844,6 @@ class CRM_Utils_System_Joomla extends CRM_Utils_System_Base {
}
}
/**
* Append Joomla js to coreResourcesList.
*
* @param array $list
*/
public function appendCoreResources(&$list) {
$list[] = 'js/crm.joomla.js';
}
/**
* @inheritDoc
*/
......
......@@ -392,3 +392,8 @@ body.admin.com_civicrm #crm-nav-menu-container {
body.admin.com_civicrm #content-right {
padding: 12px;
}
/* Make footer admin bar hide behind popup windows (CRM-15723) */
body.ui-dialog-open #status {
z-index: 100 !important;
}
......@@ -57,3 +57,8 @@
}
}
/* Make admin bar hide behind popup windows */
body.ui-dialog-open #adminmenuwrap {
z-index: 100 !important;
}
// http://civicrm.org/licensing
CRM.$(function($) {
$(document)
.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', '');
}
});
});
// http://civicrm.org/licensing
CRM.$(function($) {
$(document)
.on('dialogopen', function(e) {
// Make admin bar hide behind popup windows
$('#adminmenuwrap').css('z-index', '100');
})
.on('dialogclose', function(e) {
if ($('.ui-dialog-content:visible').not(e.target).length < 1) {
// Restore admin bar position
$('#adminmenuwrap').css('z-index', '');
}
})
.on('crmWysiwygCreate', function(e, type, editor) {
if (type === 'ckeditor') {
editor.on('maximize', function(e) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment