mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Moved up handleDocumentUploaded counter
This commit is contained in:
parent
4976d5b057
commit
a91f257f01
@ -397,9 +397,9 @@
|
||||
}
|
||||
|
||||
function handleDocumentUploaded(file, response){
|
||||
window.countUploadingDocuments--;
|
||||
file.public_id = response.document.public_id
|
||||
model.documents()[file.index].update(response.document);
|
||||
window.countUploadingDocuments--;
|
||||
if(response.document.preview_url){
|
||||
dropzone.emit('thumbnail', file, response.document.preview_url);
|
||||
}
|
||||
|
@ -1490,9 +1490,9 @@
|
||||
}
|
||||
|
||||
function handleDocumentUploaded(file, response){
|
||||
window.countUploadingDocuments--;
|
||||
file.public_id = response.document.public_id
|
||||
model.invoice().documents()[file.index].update(response.document);
|
||||
window.countUploadingDocuments--;
|
||||
@if ($account->invoice_embed_documents)
|
||||
refreshPDF(true);
|
||||
@endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user