allow a task to stay visible while being edited, regardless of other parameters

This commit is contained in:
Alice Harris 2014-10-10 22:14:43 +10:00
parent d7c8d48078
commit 13b12b830c

View file

@ -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;