mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
Fix initial focus on /tasks/create
This commit is contained in:
parent
1ac32c13a7
commit
57830316ad
@ -443,12 +443,6 @@
|
||||
ko.applyBindings(model);
|
||||
|
||||
$(function() {
|
||||
@if (!$task && !$clientPublicId)
|
||||
$('.client-select input.form-control').focus();
|
||||
@else
|
||||
$('#description').focus();
|
||||
@endif
|
||||
|
||||
$('input[type=radio]').change(function(event) {
|
||||
var val = $(event.target).val();
|
||||
if (val == 'timer') {
|
||||
@ -595,6 +589,12 @@
|
||||
} else {
|
||||
$clientSelect.trigger('change');
|
||||
}
|
||||
|
||||
@if (!$task && !$clientPublicId)
|
||||
$('.client-select input.form-control').focus();
|
||||
@else
|
||||
$('#description').focus();
|
||||
@endif
|
||||
});
|
||||
|
||||
</script>
|
||||
|
Loading…
Reference in New Issue
Block a user