Skip to content

Commit

Permalink
CRM-19960 Hide page title when is supposed to be removed
Browse files Browse the repository at this point in the history
  • Loading branch information
seamuslee001 committed Feb 2, 2017
1 parent 2a767ee commit 6ddfc1c
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 6ddfc1c

Please sign in to comment.