diff --git a/management/templates/system-backup.html b/management/templates/system-backup.html index 463d811f..297c21fe 100644 --- a/management/templates/system-backup.html +++ b/management/templates/system-backup.html @@ -122,25 +122,19 @@
- +
- +
- -
-
-
- -
- +
@@ -285,7 +279,6 @@ function show_custom_backup() { $("#backup-target-b2-user").val(b2_application_keyid); $("#backup-target-b2-pass").val(b2_applicationkey); $("#backup-target-b2-bucket").val(b2_bucket); - compute_b2_url(); } toggle_form() }) @@ -306,7 +299,8 @@ function set_custom_backup() { + "/" + $("#backup-target-rsync-path").val(); target_user = ''; } else if (target_type == "b2") { - target = $('#backup-target-b2-url').val(); + target = 'b2://' + $('#backup-target-b2-user').val() + ':' + $('#backup-target-b2-pass').val() + + '@' + $('#backup-target-b2-bucket').val() target_user = ''; target_pass = ''; } @@ -348,13 +342,4 @@ function init_inputs(target_type) { set_host($('#backup-target-s3-host-select').val()); } } - -function compute_b2_url(){ - if ($('#backup-target-b2-user').val() && $('#backup-target-b2-pass').val() && $('#backup-target-b2-bucket').val()){ - $('#backup-target-b2-url').val('b2://' + $('#backup-target-b2-user').val() + ':' + $('#backup-target-b2-pass').val() - + '@' + $('#backup-target-b2-bucket').val()); - }else{ - $('#backup-target-b2-url').val(''); - } -} \ No newline at end of file