mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 15:14:34 -04:00
Don't focus client select if client is already selected
This commit is contained in:
parent
12c185ca49
commit
2345ff11ed
@ -925,11 +925,11 @@
|
||||
})(field);
|
||||
}
|
||||
|
||||
@if ($invoice->id || count($clients) == 0)
|
||||
$('#invoice_number').focus();
|
||||
@else
|
||||
$('.client_select input.form-control').focus();
|
||||
@endif
|
||||
if (model.invoice().client().public_id() || {{ $invoice->id || count($clients) == 0 ? '1' : '0' }}) {
|
||||
$('#invoice_number').focus();
|
||||
} else {
|
||||
$('.client_select input.form-control').focus();
|
||||
}
|
||||
|
||||
$('#clientModal').on('shown.bs.modal', function () {
|
||||
$('#client\\[name\\]').focus();
|
||||
|
Loading…
x
Reference in New Issue
Block a user