From e312f00b80c145a1d1b721c93b2054d26c057880 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Wed, 1 Jun 2016 17:32:51 +0300 Subject: [PATCH] Don't refresh PDF after file uploaded --- resources/views/invoices/edit.blade.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/resources/views/invoices/edit.blade.php b/resources/views/invoices/edit.blade.php index dc297bc2bf..f32cdcdc70 100644 --- a/resources/views/invoices/edit.blade.php +++ b/resources/views/invoices/edit.blade.php @@ -1485,7 +1485,9 @@ file.public_id = response.document.public_id model.invoice().documents()[file.index].update(response.document); window.countUploadingDocuments--; - refreshPDF(true); + @if ($account->invoice_embed_documents) + refreshPDF(true); + @endif if(response.document.preview_url){ dropzone.emit('thumbnail', file, response.document.preview_url); }