Show due_date on tasks list rather than type, as it's more used

This commit is contained in:
2016-11-07 17:17:23 +01:00
parent df0ca31687
commit 506844a342
5 changed files with 16 additions and 7 deletions

View File

@@ -153,7 +153,7 @@ function task_add(shot_id, task_id, task_type)
id="task-' + task_id + '">\
<span class="status-indicator"></span>\
<span class="name">-save your task first-</span>\
<span class="type">-</span>\
<span class="due_date">-</span>\
</a>\
');
} else if (context == 'shot') {
@@ -275,7 +275,7 @@ function task_save(task_id, task_url) {
// 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.find('span.name').text(saved_task.name);
$task.find('span.type').text(saved_task.properties.task_type);
$task.find('span.due_date').text(moment().to(saved_task.properties.due_date));
$task.find('span.status').text(saved_task.properties.status.replace('_', ' '));
$task