Skip to content

Instantly share code, notes, and snippets.

@thetristan
Created February 17, 2010 09:43
Show Gist options
  • Save thetristan/306468 to your computer and use it in GitHub Desktop.
Save thetristan/306468 to your computer and use it in GitHub Desktop.
<!--
Looks like they're locking down extensions to only
modify app logic w/ EE 2.0 so you can't inject CP JS
like you could in EE 1.6.x.Instead, add this snippet
just above the closing <body> tag in
/themes/cp_themes/default/_shared/footer.php
to enable the dropdowns via mouseover instead of click:
-->
<script type="text/javascript" charset="utf-8">//<!--
jQuery("#navigationTabs>li.parent").find("a.first_level").each(function() { jQuery(this).mouseenter(function() { var n = jQuery(this).parent(); if (!n.hasClass("active")) { n.addClass("active"); } }); });
//--></script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment