This commit is contained in:
Henrique Dias 2015-09-27 21:04:59 +01:00
parent 1d9584345e
commit 4fad8668e2
2 changed files with 4 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -140,6 +140,7 @@ $(document).on('ready pjax:success', function() {
$("#upload").click(function(event) {
event.preventDefault();
$('.actions input[type="file"]').click();
return false;
});
$('input[type="file"]').on('change', function(event) {
@ -181,6 +182,7 @@ $(document).on('ready pjax:success', function() {
});
console.log(data);
});
return false;
});
}
@ -400,4 +402,4 @@ $(document).on('ready pjax:success', function() {
});
}
}
});
});