From 243d72d602e3edad35610273d76c9fecaead395c Mon Sep 17 00:00:00 2001 From: Mike Koch Date: Fri, 6 May 2016 12:41:49 -0400 Subject: [PATCH] Disable submit buttons until uploads complete --- inc/view_attachment_functions.inc.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/inc/view_attachment_functions.inc.php b/inc/view_attachment_functions.inc.php index 0f1ed32e..df3e80ee 100644 --- a/inc/view_attachment_functions.inc.php +++ b/inc/view_attachment_functions.inc.php @@ -232,6 +232,10 @@ function display_dropzone_field($url, $id = 'filedrop') { this.on('queuecomplete', function(progress) { // Stop animating if complete. $('#total-progress').removeClass('active'); + $('input[type=\"submit\"]').attr('disabled', false); + }); + this.on('processing', function() { + $('input[type=\"submit\"]').attr('disabled', true); }); }, paramName: 'attachment',