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