Fix #2179 missing document/comment controls when counter addon is not active

This commit is contained in:
Kijin Sung 2023-09-12 00:45:37 +09:00
parent f2c58a0a14
commit 08ce7b18a8
4 changed files with 27 additions and 28 deletions

View file

@ -0,0 +1,13 @@
'use strict';
$(function() {
var items = $('.dashboard>div>section>ul>li');
items.on('mouseenter focusin', function() {
$(this).addClass('hover').find('>.action').show();
});
items.on('mouseleave focusout', function() {
if(!$(this).find(':focus').length) {
$(this).removeClass('hover').find('>.action').hide();
}
});
});