Replace Status underscore and minor style tweaks

This commit is contained in:
2016-09-21 15:47:24 +02:00
parent bdd6153020
commit 4b1a52f26e
5 changed files with 36 additions and 19 deletions

View File

@@ -19,7 +19,7 @@ function save_task(task_id, task_url) {
// Update the task list.
// NOTE: this is tightly linked to the HTML of the task list in for_project.jade.
$(task + ' span.name').text($form.find("input[name='name']").val());
$(task + ' span.status').text($form.find("select[name='status']").val());
$(task + ' span.status').text($form.find("select[name='status']").val().replace('_', ' '));
$(task + ' span.status-indicator')
.removeAttr('class')
.addClass('status-indicator ' + $form.find("select[name='status']").val());