Reload backup page on front end

This commit is contained in:
Andrew 2022-08-12 20:24:11 -04:00
parent 2a316be57f
commit 1545c1415c
2 changed files with 2 additions and 6 deletions

View File

@ -1574,7 +1574,7 @@ class PanelHandler(BaseHandler):
else:
checked = self.controller.management.get_excluded_backup_dirs(server_id)
if superuser:
backup_path = bleach.clean(self.get_argument("backup_path", None))
backup_path = self.get_argument("backup_path", None)
if Helpers.is_os_windows():
backup_path.replace(" ", "^ ")
backup_path = Helpers.wtol_path(backup_path)

View File

@ -294,6 +294,7 @@
headers: { 'X-XSRFToken': token },
url: '/ajax/backup_now?id=' + server_id,
success: function (data) {
location.reload();
},
});
}
@ -505,11 +506,6 @@
}
});
}
if (webSocket) {
webSocket.on('backup_reload', function (backup) {
location.reload()
});
}
function getTreeView(path) {
path = path