fix: add dropup handler to thread tools menu, updated how post tools menu adds dropup handler

This commit is contained in:
Julian Lam
2022-08-26 10:58:55 -04:00
parent a2d0cd162d
commit 3dd3cd8297
2 changed files with 9 additions and 5 deletions

View File

@@ -181,6 +181,12 @@ define('forum/topic', [
Topic.applyDropup.call(this);
}
});
hooks.onPage('action:topic.tools.load', ({ element }) => {
Topic.applyDropup.call(element.get(0).parentNode);
});
hooks.onPage('action:post.tools.load', ({ element }) => {
Topic.applyDropup.call(element.get(0).parentNode);
});
}
function addRepliesHandler() {