mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 01:54:29 -04:00
/public breaks invoice number check #2207
This commit is contained in:
parent
ea2d58e30f
commit
b172f645a8
@ -1137,7 +1137,7 @@ ko.bindingHandlers.productTypeahead = {
|
||||
};
|
||||
|
||||
function checkInvoiceNumber() {
|
||||
var url = '{{ url('check_invoice_number') }}/{{ $invoice->id ? $invoice->public_id : '' }}?invoice_number=' + encodeURIComponent($('#invoice_number').val());
|
||||
var url = '{{ url('check_invoice_number') }}{{ $invoice->id ? '/' . $invoice->public_id : '' }}?invoice_number=' + encodeURIComponent($('#invoice_number').val());
|
||||
$.get(url, function(data) {
|
||||
var isValid = data == '{{ RESULT_SUCCESS }}' ? true : false;
|
||||
if (isValid) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user