fix: remove tooltip on ajaxify

This commit is contained in:
Barış Soner Uşaklı
2021-11-03 10:52:03 -04:00
parent 3e4d477e48
commit f728abda06

View File

@@ -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);