fix: Armoire sends back data from server rather than relying on client

closes #5376
This commit is contained in:
Blade Barringer
2016-05-24 07:13:09 -05:00
parent 02d075e342
commit 35544f14c5
3 changed files with 22 additions and 4 deletions

View File

@@ -259,6 +259,11 @@ habitrpg.controller("TasksCtrl", ['$scope', '$rootScope', '$location', 'User','N
User.buy({params:{key:item.key}});
};
$scope.buyArmoire = function () {
playRewardSound($scope.armoire);
User.buyArmoire();
}
/*
------------------------
Hiding Tasks