mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
lint: fix lint
This commit is contained in:
@@ -327,7 +327,7 @@ define('forum/topic', [
|
|||||||
$(window).one('action:ajaxify.start', destroyTooltip);
|
$(window).one('action:ajaxify.start', destroyTooltip);
|
||||||
$('[component="topic"]').on('mouseenter', 'a[component="post/parent"], [component="post/parent/content"] a,[component="post/content"] a, [component="topic/event"] a', async function () {
|
$('[component="topic"]').on('mouseenter', 'a[component="post/parent"], [component="post/parent/content"] a,[component="post/content"] a, [component="topic/event"] a', async function () {
|
||||||
const link = $(this);
|
const link = $(this);
|
||||||
link.one('mouseleave', function() {
|
link.one('mouseleave', function () {
|
||||||
if (timeoutId > 0) {
|
if (timeoutId > 0) {
|
||||||
clearTimeout(timeoutId);
|
clearTimeout(timeoutId);
|
||||||
timeoutId = 0;
|
timeoutId = 0;
|
||||||
@@ -356,7 +356,7 @@ define('forum/topic', [
|
|||||||
tooltip.one('mouseleave', destroyTooltip);
|
tooltip.one('mouseleave', destroyTooltip);
|
||||||
$(window).off('click', onClickOutside).one('click', onClickOutside);
|
$(window).off('click', onClickOutside).one('click', onClickOutside);
|
||||||
tooltip.css({
|
tooltip.css({
|
||||||
top: dropup ? linkRect.top - tooltip.outerHeight() : linkRect.top + 30,
|
top: dropup ? linkRect.top - tooltip.outerHeight() : linkRect.top + 30,
|
||||||
left: postRect.left,
|
left: postRect.left,
|
||||||
width: postWidth,
|
width: postWidth,
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user