revert PR #4996 (Sort dated todos) because of problems sorting other tasks - see comments in #4996

This commit is contained in:
Alys
2015-04-13 20:16:24 +10:00
parent c8b5d652cd
commit 8af1f0538b
4 changed files with 7 additions and 6 deletions

View File

@@ -84,9 +84,9 @@ habitrpg.controller("TasksCtrl", ['$scope', '$rootScope', '$location', 'User','N
}
};
$scope.removeTask = function(task) {
$scope.removeTask = function(list, $index) {
if (!confirm(window.env.t('sureDelete'))) return;
User.user.ops.deleteTask({params:{id:task.id}})
User.user.ops.deleteTask({params:{id:list[$index].id}})
};
$scope.saveTask = function(task, stayOpen, isSaveAndClose) {