From 8c7b27cca08b6be70a7fa0012da749bf4fa524ef Mon Sep 17 00:00:00 2001 From: Sabe Jones Date: Wed, 8 Jan 2014 22:21:32 -0600 Subject: [PATCH] Finish up @wc8 suggested user preferences: tags and Advanced Options start collapsed --- dist/habitrpg-shared.js | 6 ++++++ script/index.coffee | 2 ++ 2 files changed, 8 insertions(+) diff --git a/dist/habitrpg-shared.js b/dist/habitrpg-shared.js index 607db90635..04824815c5 100644 --- a/dist/habitrpg-shared.js +++ b/dist/habitrpg-shared.js @@ -11602,6 +11602,12 @@ var process=require("__browserify_process");(function() { if (user.preferences.newTaskEdit) { task._editing = true; } + if (user.preferences.tagsCollapsed) { + task._tags = true; + } + if (user.preferences.advancedCollapsed) { + task._advanced = true; + } if (typeof cb === "function") { cb(null, task); } diff --git a/script/index.coffee b/script/index.coffee index 6c315a942f..6fe03bbde5 100644 --- a/script/index.coffee +++ b/script/index.coffee @@ -499,6 +499,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