fix pjax stuff
parent
ee518d0ec6
commit
31651e7a32
File diff suppressed because one or more lines are too long
|
@ -48,7 +48,7 @@ $(document).on('page:browse', function() {
|
||||||
|
|
||||||
/* FILE UPLOAD */
|
/* FILE UPLOAD */
|
||||||
|
|
||||||
$('input[type="file"]').on('change', function(event) {
|
$('body').off('change', 'input[type="file"]').on('change', 'input[type="file"]', function(event) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
files = event.target.files;
|
files = event.target.files;
|
||||||
|
|
||||||
|
@ -90,7 +90,7 @@ $(document).on('page:browse', function() {
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
||||||
$("#upload").click(function(event) {
|
$('body').off('click', '.upload').on('click', '.upload', function(event) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
$('.actions input[type="file"]').click();
|
$('.actions input[type="file"]').click();
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue