mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-27 09:49:52 +01:00
fix: tag update only the edited post
This commit is contained in:
@@ -160,9 +160,9 @@ define('forum/topic/events', [
|
||||
|
||||
if (data.topic.tags && data.topic.tagsupdated) {
|
||||
Benchpress.render('partials/topic/tags', { tags: data.topic.tags }).then(function (html) {
|
||||
const tags = $('.tags');
|
||||
|
||||
const tags = $('[data-pid="' + data.post.pid + '"] .tags');
|
||||
tags.fadeOut(250, function () {
|
||||
tags.toggleClass('hidden', data.topic.tags.length === 0);
|
||||
tags.html(html).fadeIn(250);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user