Commit 700dc143 authored by Efthymia Bika's avatar Efthymia Bika

Auto complete cloud if there is only one option

parent ef5a5250
......@@ -135,9 +135,14 @@ function load_backup(backup) {
$("#backup-name").val('Backup');
$("#directory").html('');
$("#res-directory").html('');
$("#cloud").val('');
$("#project_div").show();
$("#project").val('');
if(clouds && Object.keys(clouds).length == 1) {
$("#cloud").val(Object.keys(clouds)[0]);
$("#cloud").trigger("change");
} else {
$("#cloud").val('');
$("#project").val('');
}
$("#passphrase").val('');
$("#exclude").val('');
$("#include").val('');
......
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