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
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
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);