From f5a1ec96f95bdc15b2cdb7b54f8acc094d7df848 Mon Sep 17 00:00:00 2001 From: Tyler Renelle Date: Thu, 31 Oct 2013 01:24:47 -0700 Subject: [PATCH] [#1679] wrong cancel check --- public/js/controllers/challengesCtrl.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/public/js/controllers/challengesCtrl.js b/public/js/controllers/challengesCtrl.js index 0b523d248a..bfe58d0a24 100644 --- a/public/js/controllers/challengesCtrl.js +++ b/public/js/controllers/challengesCtrl.js @@ -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); };