mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2025-01-31 12:56:11 +01:00
Reload backup page on front end
This commit is contained in:
parent
2a316be57f
commit
1545c1415c
@ -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)
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user