diff --git a/src/app/tasks.coffee b/src/app/tasks.coffee index d9b2811bf9..095314b0f7 100644 --- a/src/app/tasks.coffee +++ b/src/app/tasks.coffee @@ -25,7 +25,7 @@ module.exports.app = (appExports, model) -> newTask = _.defaults {repeat:{su:true,m:true,t:true,w:true,th:true,f:true,s:true}, completed: false }, newTask when 'todo' newTask = _.defaults {completed: false }, newTask - model.unshift "_#{type}List", newTask + e.at().unshift newTask # e.at() in this case is the list, which was scoped here using {#with @list}...{/} newModel.set '' appExports.del = (e, el) -> diff --git a/views/app/tasks.html b/views/app/tasks.html index cf404e8445..6996b68382 100644 --- a/views/app/tasks.html +++ b/views/app/tasks.html @@ -135,10 +135,15 @@ {{#if equal(@type,'todo')}}{{/}} {{#if @editable}} -
- - -
+ + + + {{#with @list}} +
+ + +
+ {{/}}
{{/}}