Last active
December 20, 2015 11:29
-
-
Save JonMcL/6123443 to your computer and use it in GitHub Desktop.
Simple Javascript to disable Drupal Overlay for admin_menu toolbar. Add to page with a hook_page_preproces.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function ($) { | |
| // Don't use Overlay module for the admin menu (toolbar) links | |
| Drupal.admin.behaviors.overlay_exclude = function (context, settings, $adminMenu) { | |
| $adminMenu.not('.overlay-exclude-processed') | |
| .addClass('overlay-exclude-processed') | |
| .find('a').addClass('overlay-exclude'); | |
| } | |
| })(jQuery); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment