[#1679] wrong cancel check

This commit is contained in:
Tyler Renelle
2013-10-31 01:24:47 -07:00
parent bbb4a9152b
commit f5a1ec96f9

View File

@@ -102,12 +102,9 @@ habitrpg.controller("ChallengesCtrl", ['$scope', 'User', 'Challenges', 'Notifica
};
$scope.removeTask = function(list, $index) {
if (confirm("Are you sure you want to delete this task?")) return;
if (!confirm("Are you sure you want to delete this task?")) return;
//TODO persist
// User.log({
// op: "delTask",
// data: task
//});
// User.log({op: "delTask", data: task});
list.splice($index, 1);
};