1 // http://civicrm.org/licensing
4 .on('crmLoad', function() {
5 // This is drupal's old-school way of listening for 'load' type events. It has to be called manually.
6 Drupal
.attachBehaviors(this);
8 .on('dialogopen', function(e
) {
9 // D7 hack to get the toolbar out of the way (CRM-15341)
10 $('#toolbar').css('z-index', '100');
12 .on('dialogclose', function(e
) {
13 if ($('.ui-dialog-content:visible').not(e
.target
).length
< 1) {
14 // D7 hack, restore toolbar position (CRM-15341)
15 $('#toolbar').css('z-index', '');