Merge pull request #13158 from elisseck/dev/core/544
[civicrm-core.git] / js / crm.drupal7.js
CommitLineData
f9f361d0 1// http://civicrm.org/licensing
c7e39a79 2(function($) {
63b128df 3 $(document)
63b128df
CW
4 .on('dialogopen', function(e) {
5 // D7 hack to get the toolbar out of the way (CRM-15341)
6 $('#toolbar').css('z-index', '100');
7 })
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', '');
12 }
c9346494 13 });
c7e39a79 14})(CRM.$);