Hide upvote arrow on news page if already upvoted. Make it disappear on upvote

This commit is contained in:
MrRenter
2015-03-17 02:06:58 -04:00
parent b7dd72f3a3
commit c9970c1725
3 changed files with 18 additions and 5 deletions

View File

@@ -120,7 +120,8 @@ $(document).ready(function() {
});
var upvoteHandler = function () {
var _id = storyId;
$(".ion-arrow-up-b").hide();
var _id = storyId;
$('#upvote').unbind('click');
var alreadyUpvoted = false;
for (var i = 0; i < upVotes.length; i++) {