pull/29/head
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) { $("#upload").click(function(event) {
event.preventDefault(); event.preventDefault();
$('.actions input[type="file"]').click(); $('.actions input[type="file"]').click();
return false;
}); });
$('input[type="file"]').on('change', function(event) { $('input[type="file"]').on('change', function(event) {
@ -181,6 +182,7 @@ $(document).on('ready pjax:success', function() {
}); });
console.log(data); console.log(data);
}); });
return false;
}); });
} }