Disable submit buttons until uploads complete

This commit is contained in:
Mike Koch 2016-05-06 12:41:49 -04:00
parent f9ec18ce5f
commit 243d72d602

View File

@ -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',