mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 18:34:30 -04:00
Fix for when document is too large
This commit is contained in:
parent
d174a2555b
commit
a7f9847978
@ -254,6 +254,7 @@
|
|||||||
dropzone.on("removedfile",handleDocumentRemoved);
|
dropzone.on("removedfile",handleDocumentRemoved);
|
||||||
dropzone.on("success",handleDocumentUploaded);
|
dropzone.on("success",handleDocumentUploaded);
|
||||||
dropzone.on("canceled",handleDocumentCanceled);
|
dropzone.on("canceled",handleDocumentCanceled);
|
||||||
|
dropzone.on("error",handleDocumentError);
|
||||||
for (var i=0; i<model.documents().length; i++) {
|
for (var i=0; i<model.documents().length; i++) {
|
||||||
var document = model.documents()[i];
|
var document = model.documents()[i];
|
||||||
var mockFile = {
|
var mockFile = {
|
||||||
@ -411,8 +412,11 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleDocumentCanceled()
|
function handleDocumentCanceled() {
|
||||||
{
|
window.countUploadingDocuments--;
|
||||||
|
}
|
||||||
|
|
||||||
|
function handleDocumentError() {
|
||||||
window.countUploadingDocuments--;
|
window.countUploadingDocuments--;
|
||||||
}
|
}
|
||||||
@endif
|
@endif
|
||||||
|
@ -1031,6 +1031,7 @@
|
|||||||
dropzone.on("removedfile",handleDocumentRemoved);
|
dropzone.on("removedfile",handleDocumentRemoved);
|
||||||
dropzone.on("success",handleDocumentUploaded);
|
dropzone.on("success",handleDocumentUploaded);
|
||||||
dropzone.on("canceled",handleDocumentCanceled);
|
dropzone.on("canceled",handleDocumentCanceled);
|
||||||
|
dropzone.on("error",handleDocumentError);
|
||||||
for (var i=0; i<model.invoice().documents().length; i++) {
|
for (var i=0; i<model.invoice().documents().length; i++) {
|
||||||
var document = model.invoice().documents()[i];
|
var document = model.invoice().documents()[i];
|
||||||
var mockFile = {
|
var mockFile = {
|
||||||
@ -1483,8 +1484,11 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleDocumentCanceled()
|
function handleDocumentCanceled() {
|
||||||
{
|
window.countUploadingDocuments--;
|
||||||
|
}
|
||||||
|
|
||||||
|
function handleDocumentError() {
|
||||||
window.countUploadingDocuments--;
|
window.countUploadingDocuments--;
|
||||||
}
|
}
|
||||||
@endif
|
@endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user