Merge pull request #86 from HabitRPG/sabe/preferences

Finish up @wc8 suggested user preferences
This commit is contained in:
Sabe Jones
2014-01-19 06:40:34 -08:00
2 changed files with 8 additions and 0 deletions
+2
View File
@@ -500,6 +500,8 @@ api.wrap = (user, main=true) ->
task = api.taskDefaults(req.body)
user["#{task.type}s"].unshift(task)
if user.preferences.newTaskEdit then task._editing = true
if user.preferences.tagsCollapsed then task._tags = true
if user.preferences.advancedCollapsed then task._advanced = true
cb? null, task
task