Skip to content

Node.js based forum software built for the modern web

fix bottom bar events

barisusaklie91b5f07b8e6
diff --git a/public/src/client/topic/threadTools.js b/public/src/client/topic/threadTools.js
index 3d51e1d816..9f9e7ce0a3 100644
--- a/public/src/client/topic/threadTools.js
+++ b/public/src/client/topic/threadTools.js
@@ -10,7 +10,7 @@ define('forum/topic/threadTools', ['forum/topic/fork', 'forum/topic/move', 'comp
renderMenu();
- var topicContainer = $('[component="topic"]');
+ var topicContainer = $('.topic');
topicContainer.on('click', '[component="topic/delete"]', function() {
topicCommand('delete', tid);
@@ -97,7 +97,7 @@ define('forum/topic/threadTools', ['forum/topic/fork', 'forum/topic/move', 'comp
};
function renderMenu() {
- $('[component="topic"]').on('show.bs.dropdown', '.thread-tools', function() {
+ function render() {
var $this = $(this);
var dropdownMenu = $this.find('.dropdown-menu');
if (dropdownMenu.html()) {
@@ -115,7 +115,10 @@ define('forum/topic/threadTools', ['forum/topic/fork', 'forum/topic/move', 'comp
});
});
});
- });
+ }
+
+ $('[component="topic"]').on('show.bs.dropdown', '.thread-tools', render);
+ $('.bottom-post-bar').on('show.bs.dropdown', '.thread-tools', render);
}
function topicCommand(command, tid) {