Merge pull request #7499 from seamuslee001/CRM-17754
[civicrm-core.git] / js / crm.drupal.js
index 2f14c499216e2e38bba0c202fc3a4d9b8cc9201d..7ed33666e29a834c01870d5f18cf10c59f83b13b 100644 (file)
@@ -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();
+     }
+   });
 });