1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2026-03-05 15:57:23 +01:00

Infer target_type from url

This commit is contained in:
Leo Koppelkamm
2015-07-27 22:09:58 +02:00
parent 1e3e34f15f
commit 91e4ea6e2f
3 changed files with 11 additions and 10 deletions

View File

@@ -142,8 +142,9 @@ function show_custom_backup() {
"GET",
{ },
function(r) {
var target_type = r.target.split(':')[0]
$("#target").val(r.target);
$("#target-type").val(r.target_type);
$("#target-type").val(target_type);
$("#target-user").val(r.target_user);
$("#target-pass").val(r.target_pass);
$("#max-age").val(r.max_age_in_days);
@@ -162,7 +163,6 @@ function set_custom_backup() {
"POST",
{
target: target,
target_type: target_type,
target_user: target_user,
target_pass: target_pass,
max_age: max_age