1 // http://civicrm.org/licensing
4 .on('dialogopen', function(e
) {
5 // D7 hack to get the toolbar out of the way (CRM-15341)
6 $('#toolbar').css('z-index', '100');
8 .on('dialogclose', function(e
) {
9 if ($('.ui-dialog-content:visible').not(e
.target
).length
< 1) {
10 // D7 hack, restore toolbar position (CRM-15341)
11 $('#toolbar').css('z-index', '');
14 .on('crmLoad', '#civicrm-menu', function(e
) {
15 if ($('#toolbar a.toggle').length
) {
16 $('#civicrm-menu').css({width
: 'calc(100% - 40px)'});