This commit is contained in:
tianshujie
2021-08-31 14:57:11 +08:00
parent 7881844284
commit cfee41bde4
2 changed files with 13 additions and 1 deletions

View File

@@ -19,7 +19,7 @@ include 'chosen.html.php';
<div id='userMenu'>
<ul id="userNav" class="nav nav-default">
<li class='dropdown dropdown-hover has-avatar'><?php common::printUserBar();?></li>
<li class='dropdown dropdown-hover'><?php common::printCreateList();?></li>
<li class='dropdown dropdown-hover' id='globalCreate'><?php common::printCreateList();?></li>
</ul>
</div>
</div>

View File

@@ -874,4 +874,16 @@ $(document).ready(function()
{
$('a').attr('target', '');
});
/* Hide the global create drop-down when hovering over the avatar. */
$('.has-avatar').hover(function()
{
$(this).next().removeClass('open');
});
/* Hide the avatar drop-down when hovering over the global create button. */
$('#globalCreate').hover(function()
{
$(this).prev().removeClass('open');
});
});