Skip to content

Commit

Permalink
Remove duplicate handler
Browse files Browse the repository at this point in the history
  • Loading branch information
ay0503 committed Oct 10, 2024
1 parent b238346 commit b7640ff
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions public/src/client/topic/threadTools.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ define('forum/topic/threadTools', [
});

topicContainer.on('click', '[component="topic/claim"]', function () {
console.log('started');
topicCommand('put', '/claim', 'claim');
return false;
});
Expand All @@ -68,12 +69,6 @@ define('forum/topic/threadTools', [
return false;
});

$(document).on('click', '[component="topic/claim"]', function () {
console.log('started');
topicCommand('put', '/claim', 'claim');
return false;
});

topicContainer.on('click', '[component="topic/mark-unread"]', function () {
console.log('unread');
topicCommand('del', '/read', undefined, () => {
Expand Down Expand Up @@ -151,6 +146,7 @@ define('forum/topic/threadTools', [
});

topicContainer.on('click', '[component="topic/following"]', function () {
console.log('follow');
changeWatching('follow');
});
topicContainer.on('click', '[component="topic/not-following"]', function () {
Expand Down

0 comments on commit b7640ff

Please sign in to comment.