From 46be1553f0d12ab295b97ac8fe0be8204936e4d5 Mon Sep 17 00:00:00 2001 From: "Lucas Torroba (@zesme)" Date: Thu, 26 May 2016 18:40:32 -0300 Subject: [PATCH] Close #7493 --- website/client/js/controllers/tasksCtrl.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/website/client/js/controllers/tasksCtrl.js b/website/client/js/controllers/tasksCtrl.js index d09ebe1f24..d3eafa4eb2 100644 --- a/website/client/js/controllers/tasksCtrl.js +++ b/website/client/js/controllers/tasksCtrl.js @@ -193,10 +193,7 @@ habitrpg.controller("TasksCtrl", ['$scope', '$rootScope', '$location', 'User','N // Don't allow creation of an empty checklist item // TODO Provide UI feedback that this item is still blank } else if ($index == task.checklist.length - 1) { - Tasks.addChecklistItem(task._id, task.checklist[$index]) - .then(function (response) { - task.checklist[$index] = response.data.data.checklist[$index]; - }); + $scope.saveTask(task, true); task.checklist.push({completed:false, text:''}); focusChecklist(task, task.checklist.length - 1); } else {