Show due_date on tasks list rather than type, as it's more used
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user