mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-12 14:12:44 +01:00
Moved up handleDocumentUploaded counter
This commit is contained in:
parent
4976d5b057
commit
a91f257f01
@ -371,7 +371,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
window.countUploadingDocuments = 0;
|
window.countUploadingDocuments = 0;
|
||||||
|
|
||||||
function handleDocumentAdded(file){
|
function handleDocumentAdded(file){
|
||||||
// open document when clicked
|
// open document when clicked
|
||||||
if (file.url) {
|
if (file.url) {
|
||||||
@ -397,9 +397,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function handleDocumentUploaded(file, response){
|
function handleDocumentUploaded(file, response){
|
||||||
|
window.countUploadingDocuments--;
|
||||||
file.public_id = response.document.public_id
|
file.public_id = response.document.public_id
|
||||||
model.documents()[file.index].update(response.document);
|
model.documents()[file.index].update(response.document);
|
||||||
window.countUploadingDocuments--;
|
|
||||||
if(response.document.preview_url){
|
if(response.document.preview_url){
|
||||||
dropzone.emit('thumbnail', file, response.document.preview_url);
|
dropzone.emit('thumbnail', file, response.document.preview_url);
|
||||||
}
|
}
|
||||||
|
@ -1490,9 +1490,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function handleDocumentUploaded(file, response){
|
function handleDocumentUploaded(file, response){
|
||||||
|
window.countUploadingDocuments--;
|
||||||
file.public_id = response.document.public_id
|
file.public_id = response.document.public_id
|
||||||
model.invoice().documents()[file.index].update(response.document);
|
model.invoice().documents()[file.index].update(response.document);
|
||||||
window.countUploadingDocuments--;
|
|
||||||
@if ($account->invoice_embed_documents)
|
@if ($account->invoice_embed_documents)
|
||||||
refreshPDF(true);
|
refreshPDF(true);
|
||||||
@endif
|
@endif
|
||||||
|
Loading…
Reference in New Issue
Block a user