Switch userDashboard from using selector object to using the api to get contributions...
[civicrm-core.git] / js / crm.drupal8.js
CommitLineData
7eed4524 1// http://civicrm.org/licensing
2CRM.$(function($) {
3 // d8 Hack to hide title when it should be (CRM-19960)
c9346494 4 var pageTitle = $('.page-title');
5 if ('<span id="crm-remove-title" style="display:none">CiviCRM</span>' == pageTitle.text()) {
6 pageTitle.hide();
7 }
7eed4524 8
c9346494 9 $('#toolbar-bar').hide();
7eed4524 10
c7e39a79 11 $('body').on('click', '.crm-hidemenu', function() {
c9346494 12 $('#toolbar-bar').slideDown();
13 });
14 $('#crm-notification-container').on('click', '#crm-restore-menu', function() {
15 $('#toolbar-bar').slideUp();
7eed4524 16 });
17});