From 3f151b38fc8879a7849643aaccb750aad9f2d8de Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Fri, 3 Feb 2017 07:50:33 +1100 Subject: [PATCH] CRM-19960 Hide page title when is supposed to be removed --- js/crm.drupal.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/js/crm.drupal.js b/js/crm.drupal.js index 2f14c499216e..7ed33666e29a 100644 --- a/js/crm.drupal.js +++ b/js/crm.drupal.js @@ -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 ('' == title) { + pageTitle.hide(); + } + }); });