From 13b12b830c7ceb97a07a3eab6dc024d1d68e14aa Mon Sep 17 00:00:00 2001 From: Alice Harris Date: Fri, 10 Oct 2014 22:14:43 +1000 Subject: [PATCH] allow a task to stay visible while being edited, regardless of other parameters --- public/js/controllers/tasksCtrl.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/js/controllers/tasksCtrl.js b/public/js/controllers/tasksCtrl.js index 312675df7b..89f89c8eff 100644 --- a/public/js/controllers/tasksCtrl.js +++ b/public/js/controllers/tasksCtrl.js @@ -193,6 +193,8 @@ habitrpg.controller("TasksCtrl", ['$scope', '$rootScope', '$location', 'User','N */ $scope.shouldShow = function(task, list, prefs){ + if (task._editing) // never hide a task while being edited + return true; if (task.type == 'habit' || task.type == 'todo' || task.type == 'reward') return true; var shouldDo = task.type == 'daily' ? habitrpgShared.shouldDo(new Date, task.repeat, prefs) : true;