mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 20:45:58 +01:00
topic/follow component fix
This commit is contained in:
@@ -60,7 +60,10 @@ define('forum/topic/threadTools', ['forum/topic/fork', 'forum/topic/move'], func
|
||||
|
||||
fork.init();
|
||||
|
||||
components.get('topic').on('click', '[component="topic/follow"]', function() {
|
||||
components.get('topic').on('click', '[component="topic/follow"]', follow);
|
||||
components.get('topic/follow').off('click').on('click', follow);
|
||||
|
||||
function follow() {
|
||||
socket.emit('topics.toggleFollow', tid, function(err, state) {
|
||||
if(err) {
|
||||
return app.alert({
|
||||
@@ -83,7 +86,7 @@ define('forum/topic/threadTools', ['forum/topic/fork', 'forum/topic/move'], func
|
||||
});
|
||||
|
||||
return false;
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
function topicCommand(command, tid) {
|
||||
|
||||
Reference in New Issue
Block a user