From 20376d69c0d28ebf225e8e676df6b9878dfd90fa Mon Sep 17 00:00:00 2001 From: Tyler Renelle Date: Fri, 3 Jan 2014 14:42:18 -0700 Subject: [PATCH] don't hide completed todos from challenge progress modals --- dist/habitrpg-shared.js | 2 +- script/index.coffee | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/habitrpg-shared.js b/dist/habitrpg-shared.js index 5605eff4f9..74273a5cdf 100644 --- a/dist/habitrpg-shared.js +++ b/dist/habitrpg-shared.js @@ -11044,7 +11044,7 @@ var process=require("__browserify_process");(function() { return; } type = task.type, completed = task.completed, value = task.value, repeat = task.repeat; - if ((type === 'todo') && (completed !== showCompleted)) { + if ((type === 'todo' && completed !== showCompleted) && main) { return 'hidden'; } if (main) { diff --git a/script/index.coffee b/script/index.coffee index 7b72091c2d..68bf64312a 100644 --- a/script/index.coffee +++ b/script/index.coffee @@ -229,7 +229,7 @@ api.taskClasses = (task, filters=[], dayStart=0, lastCron=+new Date, showComplet {type, completed, value, repeat} = task # completed / remaining toggle - return 'hidden' if (type is 'todo') and (completed != showCompleted) + return 'hidden' if (type is 'todo' and completed != showCompleted) and main # Filters if main # only show when on your own list