fixes jumping to top on vote

This commit is contained in:
barisusakli
2014-03-21 14:00:13 -04:00
parent 7f193041a8
commit b470a9b264

View File

@@ -34,11 +34,11 @@ define(['composer'], function(composer) {
}); });
postContainer.on('click', '.upvote', function() { postContainer.on('click', '.upvote', function() {
toggleVote($(this), '.upvoted', 'posts.upvote'); return toggleVote($(this), '.upvoted', 'posts.upvote');
}); });
postContainer.on('click', '.downvote', function() { postContainer.on('click', '.downvote', function() {
toggleVote($(this), '.downvoted', 'posts.downvote'); return toggleVote($(this), '.downvoted', 'posts.downvote');
}); });
postContainer.on('click', '.flag', function() { postContainer.on('click', '.flag', function() {