Browse Source

Disable submit buttons until uploads complete

merge-requests/15/head
Mike Koch 6 years ago
parent
commit
243d72d602
  1. 4
      inc/view_attachment_functions.inc.php

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

Loading…
Cancel
Save