mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
[#1679] wrong cancel check
This commit is contained in:
@@ -102,12 +102,9 @@ habitrpg.controller("ChallengesCtrl", ['$scope', 'User', 'Challenges', 'Notifica
|
|||||||
};
|
};
|
||||||
|
|
||||||
$scope.removeTask = function(list, $index) {
|
$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
|
//TODO persist
|
||||||
// User.log({
|
// User.log({op: "delTask", data: task});
|
||||||
// op: "delTask",
|
|
||||||
// data: task
|
|
||||||
//});
|
|
||||||
list.splice($index, 1);
|
list.splice($index, 1);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user