More updates to file manager

Not doing individual commits for this, tons of changes for tons of
different aspects across multiple files.
This commit is contained in:
Dane Everitt 2016-10-01 23:09:55 -04:00
parent fe9c573533
commit fb4d122a2a
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
12 changed files with 308 additions and 164 deletions

View file

@ -44,11 +44,13 @@ class FileManager {
directory: path,
},
}).done(data => {
$('#load_files').slideUp().html(data).slideDown(() => {
this.loader(false);
$('#load_files').slideUp().html(data).slideDown(100, () => {
Actions.run();
});
$('#internal_alert').slideUp();
}).fail(jqXHR => {
this.loader(false);
swal({
type: 'error',
title: 'File Error',
@ -56,9 +58,7 @@ class FileManager {
});
if (!isError) this.list('/', true);
console.log(jqXHR);
}).always(() => {
this.loader(false);
});
})
}
loader(show) {
@ -76,9 +76,9 @@ class FileManager {
'font-size': '60px'
});
$('.ajax_loading_box').css('height', (height + 5)).fadeIn();
$('.ajax_loading_box').css('height', (height + 5)).show();
} else {
$('.ajax_loading_box').fadeOut(100);
$('.ajax_loading_box').hide();
}
}