Skip to content

Commit

Permalink
Merge pull request civicrm#9770 from seamuslee001/CRM-19960
Browse files Browse the repository at this point in the history
CRM-19960 Hide page title when is supposed to be removed
  • Loading branch information
eileenmcnaughton authored Feb 18, 2017
2 parents d933c4b + 6ddfc1c commit 54f5bbb
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion js/crm.drupal.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,13 @@ CRM.$(function($) {
// D7 hack, restore toolbar position (CRM-15341)
$('#toolbar').css('z-index', '');
}
});
})
// d8 Hack to hide title when it should be (CRM-19960)
.ready(function() {
var pageTitle = $('.page-title');
var title = $('.page-title').text();
if ('<span id="crm-remove-title" style="display:none">CiviCRM</span>' == title) {
pageTitle.hide();
}
});
});

0 comments on commit 54f5bbb

Please sign in to comment.