redesign parts of the file manager

ignore yarn.lock file
This commit is contained in:
Jakob Schrettenbrunner 2017-01-27 00:44:59 +01:00
parent 0c1559c922
commit c62312b8af
10 changed files with 179 additions and 158 deletions

View file

@ -44,6 +44,7 @@ class FileManager {
$('#load_files').slideUp(10).html(data).slideDown(10, () => {
ContextMenu.run();
this.reloadFilesButton();
this.addFolderButton();
if (_.isFunction(next)) {
return next();
}
@ -82,6 +83,12 @@ class FileManager {
});
}
addFolderButton() {
$('i[data-action="add-folder"]').unbind().on('click', () => {
new ActionsClass().folder($('#file_listing').data('current-dir') || '/');
})
}
decodeHash() {
return decodeURIComponent(window.location.hash.substring(1));
}