- Refactoring

- Code cleanup
- Reformatting
This commit is contained in:
2021-05-31 09:53:12 +02:00
parent ca72812304
commit 2e693eb93a
8 changed files with 122 additions and 118 deletions

View File

@@ -1,3 +1,12 @@
function logout_callback(response, code) {
if (code === 200) {
sessionStorage.removeItem('authorization');
location.reload();
} else {
create_error_view(response['error'] + ` <span onclick="this.parentElement.children[1].click(); window.history.pushState('index', 'Filemanager', 'index.html?path='); url_changed();">Return to root directory</span>`);
}
}
function remove_callback(response, code) {
if (code === 200) {
create_success_view("Successfully deleted.");