Commit | Line | Data |
---|---|---|
469d8dab CW |
1 | // http://civicrm.org/licensing |
2 | CRM.$(function($) { | |
3 | $(document) | |
4 | .on('dialogopen', function(e) { | |
5 | // Make admin bar hide behind popup windows | |
6 | $('#adminmenuwrap').css('z-index', '100'); | |
7 | }) | |
8 | .on('dialogclose', function(e) { | |
9 | if ($('.ui-dialog-content:visible').not(e.target).length < 1) { | |
10 | // Restore admin bar position | |
11 | $('#adminmenuwrap').css('z-index', ''); | |
12 | } | |
a1f06c87 CW |
13 | }) |
14 | .on('crmWysiwygCreate', function(e, type, editor) { | |
15 | if (type === 'ckeditor') { | |
16 | editor.on('maximize', function(e) { | |
17 | $('#wpadminbar').toggle(e.data === 2); | |
18 | }); | |
19 | } | |
469d8dab CW |
20 | }); |
21 | }); |