mirror of
https://github.com/filebrowser/filebrowser.git
synced 2024-06-07 23:00:43 +00:00
fix pjax stuff
This commit is contained in:
parent
ee518d0ec6
commit
31651e7a32
2
assets/js/app.min.js
vendored
2
assets/js/app.min.js
vendored
File diff suppressed because one or more lines are too long
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user