Commit 333f2d32 authored by Efthymia Bika's avatar Efthymia Bika
Browse files

Add link to Backup tab

parent 4d8a32ae
......@@ -25,6 +25,11 @@
load_data_from_file(BACKUP_CONF_FILE, render_backup_sets);
function go_to_backup(backup) {
selected_backup = backup;
$("#backup-tab-link").trigger("click");
}
function render_backup_sets(data) {
$("#backup_list").remove();
// backups is undefined the first time, when
......@@ -50,10 +55,8 @@
.attr("href", "#")
.attr("id", "box_a_" + backup.name)
.attr("class", "left")
.click(function() {
$("#backup-tab-link").trigger("click");
load_backup(backup);
});
.attr("onclick", "go_to_backup('" + backup.name + "')");
li.append(a);
var a_del = $("<a><i class='fa fa-times-circle delete_icon'></i></a>")
......@@ -61,7 +64,8 @@
.attr("class", "right")
.click(function() {
if(confirm("Are you sure you want to delete " + backup.name + '?' +
"\nNOTE: To actually remove backup sets from remote container you have to manually purge it.")) {
"\nNOTE: To actually remove backup sets from remote" +
" container you have to manually purge it.")) {
delete_backup(backup);
}
});
......@@ -70,6 +74,7 @@
ul.append(li);
$("#backup-table").append(ul);
});
}
</script>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment