mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-08 20:22:42 +01:00
Fix for when document is too large
This commit is contained in:
parent
2cd1517dd6
commit
da860c0d07
@ -254,6 +254,7 @@
|
||||
dropzone.on("removedfile",handleDocumentRemoved);
|
||||
dropzone.on("success",handleDocumentUploaded);
|
||||
dropzone.on("canceled",handleDocumentCanceled);
|
||||
dropzone.on("error",handleDocumentError);
|
||||
for (var i=0; i<model.documents().length; i++) {
|
||||
var document = model.documents()[i];
|
||||
var mockFile = {
|
||||
@ -411,8 +412,11 @@
|
||||
}
|
||||
}
|
||||
|
||||
function handleDocumentCanceled()
|
||||
{
|
||||
function handleDocumentCanceled() {
|
||||
window.countUploadingDocuments--;
|
||||
}
|
||||
|
||||
function handleDocumentError() {
|
||||
window.countUploadingDocuments--;
|
||||
}
|
||||
@endif
|
||||
|
@ -1003,6 +1003,7 @@
|
||||
dropzone.on("removedfile",handleDocumentRemoved);
|
||||
dropzone.on("success",handleDocumentUploaded);
|
||||
dropzone.on("canceled",handleDocumentCanceled);
|
||||
dropzone.on("error",handleDocumentError);
|
||||
for (var i=0; i<model.invoice().documents().length; i++) {
|
||||
var document = model.invoice().documents()[i];
|
||||
var mockFile = {
|
||||
@ -1435,8 +1436,11 @@
|
||||
}
|
||||
}
|
||||
|
||||
function handleDocumentCanceled()
|
||||
{
|
||||
function handleDocumentCanceled() {
|
||||
window.countUploadingDocuments--;
|
||||
}
|
||||
|
||||
function handleDocumentError() {
|
||||
window.countUploadingDocuments--;
|
||||
}
|
||||
@endif
|
||||
|
Loading…
Reference in New Issue
Block a user