Remember task type in local storage

This commit is contained in:
Hillel Coren 2017-03-06 11:56:16 +02:00
parent 6aeaeaf272
commit b6fe07c07a

View File

@ -621,11 +621,13 @@
$clientSelect.trigger('change');
}
@if (!$task)
var taskType = localStorage.getItem('last:task_type');
if (taskType) {
$('input[name=task_type][value='+taskType+']').prop('checked', true);
onTaskTypeChange();
}
@endif
@if (!$task && !$clientPublicId)
$('.client-select input.form-control').focus();