drupal-civicrm/sites/all/modules/civicrm/js/crm.wordpress.js

15 lines
421 B
JavaScript
Raw Permalink Normal View History

2018-01-14 15:10:16 +02:00
// 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', '');
}
});
});