Skip to content

Commit

Permalink
Merge pull request #10892 from herbdool/crm21098
Browse files Browse the repository at this point in the history
CRM-21098
  • Loading branch information
colemanw authored Aug 25, 2017
2 parents 7bd546e + 3e7e13e commit cedaef1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CRM/Utils/System/Backdrop.php
Original file line number Diff line number Diff line change
Expand Up @@ -1017,12 +1017,13 @@ private function parseBackdropSiteNameFromRequest($flagFile = '') {
}

/**
* Append Backdrop CSS to coreResourcesList.
* Append Backdrop CSS and JS to coreResourcesList.
*
* @param array $list
*/
public function appendCoreResources(&$list) {
$list[] = 'css/backdrop.css';
$list[] = 'js/crm.backdrop.js';
}

}
10 changes: 10 additions & 0 deletions js/crm.backdrop.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// http://civicrm.org/licensing
CRM.$(function($) {
$('#admin-bar').css('display', 'none');
$('.crm-hidemenu').click(function(e) {
$('#admin-bar').css('display', 'block');
});
$('#crm-notification-container').on('click', '#crm-restore-menu', function() {
$('#admin-bar').css('display', 'none');
});
});

0 comments on commit cedaef1

Please sign in to comment.