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

@@ -212,7 +212,7 @@ habitrpg.controller("ChallengesCtrl", ['$rootScope','$scope', 'Shared', 'User',
};
$scope.removeTask = function(task, list) {
if (!confirm(window.env.t('sureDelete'))) return;
if (!confirm(window.env.t('sureDelete', {taskType: task.type, taskText: task.text}))) return;
//TODO persist
// User.log({op: "delTask", data: task});
_.remove(list, task);