mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 06:37:23 +01:00
Reimplement (broken) task ordering
This commit is contained in:
@@ -84,9 +84,9 @@ habitrpg.controller("TasksCtrl", ['$scope', '$rootScope', '$location', 'User','N
|
||||
}
|
||||
};
|
||||
|
||||
$scope.removeTask = function(list, $index) {
|
||||
$scope.removeTask = function(task) {
|
||||
if (!confirm(window.env.t('sureDelete'))) return;
|
||||
User.user.ops.deleteTask({params:{id:list[$index].id}})
|
||||
User.user.ops.deleteTask({params:{id:task.id}})
|
||||
};
|
||||
|
||||
$scope.saveTask = function(task, stayOpen, isSaveAndClose) {
|
||||
|
||||
Reference in New Issue
Block a user