Disable submit buttons until uploads complete
This commit is contained in:
parent
f9ec18ce5f
commit
243d72d602
@ -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',
|
||||
|
Loading…
x
Reference in New Issue
Block a user