Skip to content

Node.js based forum software built for the modern web

fix: remove tooltip on ajaxify

Barış Soner Uşaklıf728abda06b0
diff --git a/public/src/client/topic.js b/public/src/client/topic.js
index 4f32f70777..478883b62e 100644
--- a/public/src/client/topic.js
+++ b/public/src/client/topic.js
@@ -180,6 +180,10 @@ define('forum/topic', [
}
let timeoutId = 0;
const postCache = {};
+ $(window).one('action:ajaxify.start', function () {
+ clearTimeout(timeoutId);
+ $('#post-tooltip').remove();
+ });
$('[component="topic"]').on('mouseenter', '[component="post"] a, [component="topic/event"] a', async function () {
const link = $(this);