Skip to content

Commit

Permalink
Merge pull request #37 from spartansystems/fix-file-upload-jquery
Browse files Browse the repository at this point in the history
Missing event on change
  • Loading branch information
bbrock25 committed Oct 29, 2015
2 parents a378c86 + 5ad2dfa commit a73bcc6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/assets/javascripts/atomic_cms.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,7 @@
var $next = $($input.siblings('input'));
$input.attr('name', null).val('');

$input.on('change', function() {

$input.on('change', function(event) {
var formData = new FormData(),
fileData = event.target.files[0];
formData.append('file', fileData);
Expand Down

0 comments on commit a73bcc6

Please sign in to comment.