trigger the click event on the right submit button after upload (#10885)

This commit is contained in:
Frédéric Péters 2016-05-11 13:48:35 +02:00
parent 7b8d751d14
commit 4c62a7b236
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@
$(this).find('form').submit();
});
$('#send-file input[type=file]').on('change', function() {
$('#send-file input[type=submit]').click();
$('#send-file input[type=submit][name=submit]').click();
});
$('#send-file button').on('click', function() {
$('#send-file input[type=file]').click();