- Refactoring
- Code cleanup - Reformatting
This commit is contained in:
@@ -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.");
|
||||
|
||||
Reference in New Issue
Block a user