Don't focus invoice number when viewing an invoice

This commit is contained in:
Hillel Coren 2016-07-28 17:09:58 +03:00
parent 718fd928a4
commit be311315c3

View File

@ -965,7 +965,7 @@
} }
if (model.invoice().client().public_id() || {{ $invoice->id || count($clients) == 0 ? '1' : '0' }}) { if (model.invoice().client().public_id() || {{ $invoice->id || count($clients) == 0 ? '1' : '0' }}) {
$('#invoice_number').focus(); // do nothing
} else { } else {
$('.client_select input.form-control').focus(); $('.client_select input.form-control').focus();
} }