tasks-fix-delete-message

This commit is contained in:
Keith Holliday
2015-11-29 14:30:22 -06:00
parent 5e105a0e45
commit ea87784575
3 changed files with 4 additions and 4 deletions

View File

@@ -92,7 +92,7 @@ habitrpg.controller("TasksCtrl", ['$scope', '$rootScope', '$location', 'User','N
};
$scope.removeTask = function(task) {
if (!confirm(window.env.t('sureDelete'))) return;
if (!confirm(window.env.t('sureDelete', {taskType: task.type, taskText: task.text}))) return;
User.user.ops.deleteTask({params:{id:task.id}})
};