mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 07:07:35 +01:00
Clone gems, all task info, and spacing.
This commit is contained in:
@@ -102,7 +102,7 @@ habitrpg.controller("ChallengesCtrl", ['$rootScope','$scope', 'Shared', 'User',
|
||||
};
|
||||
|
||||
function cloneTask(element, index, array) {
|
||||
var task = Shared.taskDefaults({text: element.text, type: element.type});
|
||||
var task = Shared.taskDefaults(element);
|
||||
clonedTasks[element.type].push(task);
|
||||
}
|
||||
|
||||
@@ -125,7 +125,8 @@ habitrpg.controller("ChallengesCtrl", ['$rootScope','$scope', 'Shared', 'User',
|
||||
group: challenge.group._id,
|
||||
timestamp: +(new Date),
|
||||
members: [],
|
||||
official: false
|
||||
official: false,
|
||||
prize: challenge.prize
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user