mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-24 09:13:45 +02:00
redesign parts of the file manager
ignore yarn.lock file
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user