If folder does not exist, reload the file manager index
This commit is contained in:
parent
8ce0863559
commit
6b2d7b6488
4 changed files with 28 additions and 3 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -63,6 +63,11 @@ class FileManager {
|
|||
if (_.isFunction(next)) {
|
||||
return next(new Error('Failed to load file listing.'));
|
||||
}
|
||||
|
||||
if ((path !== '' && path !== '/') && jqXHR.status === 404) {
|
||||
return this.list('', next);
|
||||
}
|
||||
|
||||
swal({
|
||||
type: 'error',
|
||||
title: 'File Error',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue