Improve comment view, re-enable upvoting for articles

This commit is contained in:
Nathan Leniz
2015-03-05 09:13:22 +09:00
parent ba97c984e7
commit 3fac5cb70e
4 changed files with 51 additions and 44 deletions

View File

@@ -143,6 +143,8 @@ $(document).ready(function() {
.done(function (data, textStatus, xhr) {
$('#storyRank').text(data.rank);
});
} else {
console.log('Can\'t upvote because you\'ve already upvoted');
}
};
$('#upvote').on('click', upvoteHandler);