mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +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) {
|
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);
|
clonedTasks[element.type].push(task);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -125,7 +125,8 @@ habitrpg.controller("ChallengesCtrl", ['$rootScope','$scope', 'Shared', 'User',
|
|||||||
group: challenge.group._id,
|
group: challenge.group._id,
|
||||||
timestamp: +(new Date),
|
timestamp: +(new Date),
|
||||||
members: [],
|
members: [],
|
||||||
official: false
|
official: false,
|
||||||
|
prize: challenge.prize
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user