Better dropdown menu setup, more options

Still rough
This commit is contained in:
Dane Everitt
2016-10-01 15:40:38 -04:00
parent d812e1a23c
commit 6098f31f9a
5 changed files with 50 additions and 29 deletions

View File

@@ -28,7 +28,7 @@ class FileManager {
$('[data-toggle="tooltip"]').tooltip();
}
list(path) {
list(path, isError) {
if (_.isUndefined(path)) {
path = this.decodeHash();
}
@@ -54,7 +54,7 @@ class FileManager {
title: 'File Error',
text: 'An error occured while attempting to process this request. Please try again.',
});
this.list('/');
if (!isError) this.list('/', true);
console.log(jqXHR);
}).always(() => {
this.loader(false);