mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2026-03-04 15:54:48 +01:00
Rename max_age to min_age
Also clarify a comment and remove an unneeded type check
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
<div class="form-group">
|
||||
<label for="target" class="col-sm-2 control-label">Maximum time to keep old backups (in days)</label>
|
||||
<div class="col-sm-8">
|
||||
<input type="number" class="form-control" rows="1" id="max-age"></input>
|
||||
<input type="number" class="form-control" rows="1" id="min-age"></input>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group form-advanced">
|
||||
@@ -147,7 +147,7 @@ function show_custom_backup() {
|
||||
$("#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);
|
||||
$("#min-age").val(r.min_age_in_days);
|
||||
toggle_form()
|
||||
})
|
||||
}
|
||||
@@ -157,7 +157,7 @@ function set_custom_backup() {
|
||||
var target_type = $("#target-type").val();
|
||||
var target_user = $("#target-user").val();
|
||||
var target_pass = $("#target-pass").val();
|
||||
var max_age = $("#max-age").val();
|
||||
var min_age = $("#min-age").val();
|
||||
api(
|
||||
"/system/backup/custom",
|
||||
"POST",
|
||||
@@ -165,7 +165,7 @@ function set_custom_backup() {
|
||||
target: target,
|
||||
target_user: target_user,
|
||||
target_pass: target_pass,
|
||||
max_age: max_age
|
||||
min_age: min_age
|
||||
},
|
||||
function(r) {
|
||||
// Responses are multiple lines of pre-formatted text.
|
||||
|
||||
Reference in New Issue
Block a user