mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00:33 -04:00
Remember task type in local storage
This commit is contained in:
parent
6aeaeaf272
commit
b6fe07c07a
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user