Disable submit buttons until uploads complete

merge-requests/15/head
Mike Koch 8 years ago
parent f9ec18ce5f
commit 243d72d602

@ -232,6 +232,10 @@ function display_dropzone_field($url, $id = 'filedrop') {
this.on('queuecomplete', function(progress) { this.on('queuecomplete', function(progress) {
// Stop animating if complete. // Stop animating if complete.
$('#total-progress').removeClass('active'); $('#total-progress').removeClass('active');
$('input[type=\"submit\"]').attr('disabled', false);
});
this.on('processing', function() {
$('input[type=\"submit\"]').attr('disabled', true);
}); });
}, },
paramName: 'attachment', paramName: 'attachment',

Loading…
Cancel
Save