New user preference: open new tasks in edit mode

This commit is contained in:
Sabe Jones
2014-01-07 20:16:35 -06:00
parent 84637ad336
commit 7732f4af32
2 changed files with 4 additions and 0 deletions
+3
View File
@@ -11595,6 +11595,9 @@ var process=require("__browserify_process");(function() {
var task;
task = api.taskDefaults(req.body);
user["" + task.type + "s"].unshift(task);
if (user.preferences.newTaskEdit) {
task._editing = true;
}
if (typeof cb === "function") {
cb(null, task);
}
+1
View File
@@ -497,6 +497,7 @@ api.wrap = (user, main=true) ->
addTask: (req, cb) ->
task = api.taskDefaults(req.body)
user["#{task.type}s"].unshift(task)
if user.preferences.newTaskEdit then task._editing = true
cb? null, task
task