Reimplement (broken) task ordering

This commit is contained in:
Kevin Gisi
2015-04-13 07:47:56 -04:00
parent e7775c1d82
commit 02838214c7
5 changed files with 9 additions and 10 deletions

View File

@@ -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) {