Commit 2b84d74d authored by Christoph Burgdorf's avatar Christoph Burgdorf

asured that "mark all as complete" will be reset after one clicked "clear x completed items"

parent 02c7ab14
...@@ -70,6 +70,7 @@ App.Controllers.TodoController = function () { ...@@ -70,6 +70,7 @@ App.Controllers.TodoController = function () {
angular.forEach(oldTodos, function(todo) { angular.forEach(oldTodos, function(todo) {
if (!todo.done) self.todos.push(todo); if (!todo.done) self.todos.push(todo);
}); });
self.allChecked = false;
}; };
self.toggleAllStates = function(){ self.toggleAllStates = function(){
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment