If folder does not exist, reload the file manager index

This commit is contained in:
Dane Everitt 2017-12-31 10:30:19 -06:00
parent 8ce0863559
commit 6b2d7b6488
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
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

View file

@ -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',