4.7.17 release notes: improve description per @xurizaemon's confusion
[civicrm-core.git] / js / crm.drupal.js
CommitLineData
f9f361d0
CW
1// http://civicrm.org/licensing
2CRM.$(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 }
3f151b38
SL
13 })
14 // d8 Hack to hide title when it should be (CRM-19960)
15 .ready(function() {
16 var pageTitle = $('.page-title');
17 var title = $('.page-title').text();
18 if ('<span id="crm-remove-title" style="display:none">CiviCRM</span>' == title) {
19 pageTitle.hide();
20 }
21 });
f9f361d0 22});