fix(plans): various bug fixes

This commit is contained in:
Tyler Renelle
2014-12-03 16:43:27 -07:00
parent e1492809fd
commit d2e230db1f
6 changed files with 37 additions and 29 deletions
+2 -1
View File
@@ -129,13 +129,14 @@ habitrpg.controller("GroupsCtrl", ['$scope', '$rootScope', 'Shared', 'Groups', '
$scope.gift = {
type: 'gems',
gems: {amount:0, fromBalance:true},
subscription: {months:1},
subscription: {months:0},
message:''
};
$scope.sendGift = function(uuid, gift){
$http.post('/api/v2/members/'+uuid+'/gift', gift).success(function(){
Notification.text('Gift sent!')
$rootScope.User.sync();
$scope.$close();
})
}
}