Skip to content

Instantly share code, notes, and snippets.

@dvdsmpsn
Last active August 23, 2021 02:40
Show Gist options
  • Save dvdsmpsn/6781011 to your computer and use it in GitHub Desktop.
Save dvdsmpsn/6781011 to your computer and use it in GitHub Desktop.
How to open Atlassian Confluence drop down menus on mouse over rather than mouse click events
<!-- For Confluence 4.x -->
<script>
AJS.toInit(function($){
$('.ajs-menu-bar > li.ajs-menu-item').hover(
function(){
$(this).children('a')[0].click();
},
function(){
$(this).children('a')[0].click();
$(this).removeClass('hover');
}
);
});
</script>
<!-- For Confluence 5.x -->
<script>
AJS.toInit(function ($) {
var navHover = function(){
$(this).click();
};
$('.aui-header-secondary .aui-nav a').hover(navHover, navHover);
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment