diff --git a/meteor/leaderboard/leaderboard.html b/meteor/leaderboard/leaderboard.html index db5899c7..2e93960f 100644 --- a/meteor/leaderboard/leaderboard.html +++ b/meteor/leaderboard/leaderboard.html @@ -19,6 +19,7 @@
{{selected_name}}
+
{{/if}} diff --git a/meteor/leaderboard/leaderboard.js b/meteor/leaderboard/leaderboard.js index 1013e281..633e98b4 100644 --- a/meteor/leaderboard/leaderboard.js +++ b/meteor/leaderboard/leaderboard.js @@ -20,6 +20,10 @@ if (Meteor.isClient) { Template.leaderboard.events({ 'click input.inc': function () { Players.update(Session.get("selected_player"), {$inc: {score: 5}}); + }, + + 'click input.desc': function () { + Players.update(Session.get("selected_player"), {$inc: {score: -5}}); } });