From b9a0fb47de2da5ec31b9884893deb54e56287bce Mon Sep 17 00:00:00 2001 From: aignatov-bio Date: Thu, 12 Mar 2020 11:50:31 +0100 Subject: [PATCH] Add total size validation check to result files --- app/assets/javascripts/sitewide/drag_n_drop.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/assets/javascripts/sitewide/drag_n_drop.js b/app/assets/javascripts/sitewide/drag_n_drop.js index 6b94ee634..361a19f6f 100644 --- a/app/assets/javascripts/sitewide/drag_n_drop.js +++ b/app/assets/javascripts/sitewide/drag_n_drop.js @@ -566,6 +566,7 @@ }); totalSize -= parseInt(droppedFiles[index].size, 10); droppedFiles.splice(index, 1); + validateTotalSize(); $el.closest('.panel-result-attachment-new').remove(); }); }