mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
fix: empty thread tools container on open
This commit is contained in:
@@ -180,12 +180,15 @@ define('forum/topic/threadTools', [
|
||||
return;
|
||||
}
|
||||
|
||||
dropdownMenu.toggleClass('hidden', true);
|
||||
socket.emit('topics.loadTopicTools', { tid: ajaxify.data.tid, cid: ajaxify.data.cid }, function (err, data) {
|
||||
if (err) {
|
||||
return alerts.error(err);
|
||||
}
|
||||
app.parseAndTranslate('partials/topic/topic-menu-list', data, function (html) {
|
||||
dropdownMenu.html(html);
|
||||
dropdownMenu.toggleClass('hidden', false);
|
||||
|
||||
hooks.fire('action:topic.tools.load', {
|
||||
element: dropdownMenu,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user