diff --git a/js/script.js b/js/script.js index 7750af0..7f19487 100644 --- a/js/script.js +++ b/js/script.js @@ -122,14 +122,7 @@ currentSong = (tt.room.currentSong)?tt.room.currentSong.metadata:0; var upvoteClickEvent = function() { if ($(this).hasClass('active')) { - if ($this.autoAwesome) { - $this.autoAwesome=false; - $(this).removeClass('auto'); - } - else { - $this.autoAwesome=true; - $(this).addClass('auto'); - } + } else { $('#downvotes').removeClass('active'); @@ -610,10 +603,7 @@ $('.count').removeClass('active'); $('#activityLog').prepend(util.buildTree(activity)) tt.room.downvoters=[]; - if ($this.autoAwesome) { - tt.room.manager.callback('upvote'); - $('#upvotes').addClass('active'); - } + $this.currentSong.set({ artist: currentSong.artist, title: currentSong.song,