Remember task type in local storage
This commit is contained in:
parent
6aeaeaf272
commit
b6fe07c07a
1 changed files with 7 additions and 5 deletions
|
|
@ -621,11 +621,13 @@
|
|||
$clientSelect.trigger('change');
|
||||
}
|
||||
|
||||
var taskType = localStorage.getItem('last:task_type');
|
||||
if (taskType) {
|
||||
$('input[name=task_type][value='+taskType+']').prop('checked', true);
|
||||
onTaskTypeChange();
|
||||
}
|
||||
@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();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue