mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 11:35:55 +01:00
fixes jumping to top on vote
This commit is contained in:
@@ -34,11 +34,11 @@ define(['composer'], function(composer) {
|
||||
});
|
||||
|
||||
postContainer.on('click', '.upvote', function() {
|
||||
toggleVote($(this), '.upvoted', 'posts.upvote');
|
||||
return toggleVote($(this), '.upvoted', 'posts.upvote');
|
||||
});
|
||||
|
||||
postContainer.on('click', '.downvote', function() {
|
||||
toggleVote($(this), '.downvoted', 'posts.downvote');
|
||||
return toggleVote($(this), '.downvoted', 'posts.downvote');
|
||||
});
|
||||
|
||||
postContainer.on('click', '.flag', function() {
|
||||
|
Reference in New Issue
Block a user