mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-08 20:22:42 +01:00
Moved up handleDocumentUploaded counter
This commit is contained in:
parent
4976d5b057
commit
a91f257f01
@ -371,7 +371,7 @@
|
||||
}
|
||||
|
||||
window.countUploadingDocuments = 0;
|
||||
|
||||
|
||||
function handleDocumentAdded(file){
|
||||
// open document when clicked
|
||||
if (file.url) {
|
||||
@ -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…
Reference in New Issue
Block a user