Merge pull request #4136 from Alys/hide_completed_dailies-with-edit-fix

allow Daily to stay visible while being edited
This commit is contained in:
Alice Harris
2014-10-10 22:19:01 +10:00
+2
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;