Commit | Line | Data |
---|---|---|
f9f361d0 CW |
1 | // http://civicrm.org/licensing |
2 | CRM.$(function($) { | |
63b128df CW |
3 | $(document) |
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); | |
7 | }) | |
8 | .on('dialogopen', function(e) { | |
9 | // D7 hack to get the toolbar out of the way (CRM-15341) | |
10 | $('#toolbar').css('z-index', '100'); | |
11 | }) | |
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', ''); | |
16 | } | |
17 | }) | |
f9f361d0 | 18 | }); |