fix pjax stuff

pull/48/head
Henrique Dias 2016-02-07 21:46:45 +00:00
parent ee518d0ec6
commit 31651e7a32
2 changed files with 3 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -48,7 +48,7 @@ $(document).on('page:browse', function() {
/* FILE UPLOAD */
$('input[type="file"]').on('change', function(event) {
$('body').off('change', 'input[type="file"]').on('change', 'input[type="file"]', function(event) {
event.preventDefault();
files = event.target.files;
@ -90,7 +90,7 @@ $(document).on('page:browse', function() {
return false;
});
$("#upload").click(function(event) {
$('body').off('click', '.upload').on('click', '.upload', function(event) {
event.preventDefault();
$('.actions input[type="file"]').click();
return false;