mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
Add extra line breaks
This commit is contained in:
@@ -150,6 +150,7 @@ habitrpg.controller('SettingsCtrl',
|
|||||||
Notification.text(env.t('promoCodeApplied'));
|
Notification.text(env.t('promoCodeApplied'));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
$scope.generateCodes = function(codes){
|
$scope.generateCodes = function(codes){
|
||||||
$http.post(ApiUrl.get() + '/api/v2/coupons/generate/'+codes.event+'?count='+(codes.count || 1))
|
$http.post(ApiUrl.get() + '/api/v2/coupons/generate/'+codes.event+'?count='+(codes.count || 1))
|
||||||
.success(function(res,code){
|
.success(function(res,code){
|
||||||
@@ -158,6 +159,7 @@ habitrpg.controller('SettingsCtrl',
|
|||||||
window.location.href = '/api/v2/coupons?limit='+codes.count+'&_id='+User.user._id+'&apiToken='+User.user.apiToken;
|
window.location.href = '/api/v2/coupons?limit='+codes.count+'&_id='+User.user._id+'&apiToken='+User.user.apiToken;
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
$scope.releasePets = function() {
|
$scope.releasePets = function() {
|
||||||
User.user.ops.releasePets({});
|
User.user.ops.releasePets({});
|
||||||
$rootScope.$state.go('tasks');
|
$rootScope.$state.go('tasks');
|
||||||
|
|||||||
Reference in New Issue
Block a user