in src/main/resources/static/Scripts/todoListCtrl.js [30:40]
$scope.editSwitch = function (todo) {
todo.edit = !todo.edit;
if (todo.edit) {
$scope.editInProgressTodo.description = todo.description;
$scope.editInProgressTodo.id = todo.id;
$scope.editInProgressTodo.finished = todo.finished;
$scope.editingInProgress = true;
} else {
$scope.editingInProgress = false;
}
};