Fix missing update of task type on task saving

This commit is contained in:
2016-09-23 19:39:14 +02:00
parent 052344af26
commit 6ea22dfcce

View File

@@ -241,7 +241,7 @@ function task_save(task_id, task_url) {
// NOTE: this is tightly linked to the HTML of the task list in for_project.jade. // NOTE: this is tightly linked to the HTML of the task list in for_project.jade.
$('.task-name-' + saved_task._id).text(saved_task.name).flashOnce(); $('.task-name-' + saved_task._id).text(saved_task.name).flashOnce();
$task.find('span.name').text(saved_task.name); $task.find('span.name').text(saved_task.name);
$task.find('span.type').text(saved_task.task_type); $task.find('span.type').text(saved_task.properties.task_type);
$task.find('span.status').text(saved_task.properties.status.replace('_', ' ')); $task.find('span.status').text(saved_task.properties.status.replace('_', ' '));
$task $task