Commit 81f16651 authored by Efthymia Bika's avatar Efthymia Bika

Remove _ from backup/container name

parent eb06fce5
......@@ -64,7 +64,7 @@
$('#backup-name-error small').show();
return false;
} else {
var pattern = /^Backup_[\w.\-]+$/;
var pattern = /^Backup[\w.\-]+$/;
if(!backup_name.match(pattern)) {
$('#backup-name-error small').text(errors.backup_name_illegal);
$('#backup-name-error small').show();
......@@ -126,7 +126,7 @@
}
var ul = $("<ul></ul>")
.attr("class", "no-bullet template-list");
var li = $("<li>Load Template</li>")
var li = $("<li>Load Template :</li>")
.attr("class", "template-list-title");
ul.append(li);
......@@ -276,8 +276,8 @@
</div>
<div class="small-9 columns error" id="backup-name-error">
<input type="text" id="backup-name"
placeholder="Backup_[A-Za-z0-9-_]"
value="Backup_"
placeholder="Backup[A-Za-z0-9-_]"
value="Backup"
onchange="check_backup_name();">
<small class="error"></small>
</div>
......
......@@ -4,7 +4,7 @@ var container = "";
var errors = {
backup_name_empty: 'Provide a Backup Name',
backup_name_illegal: 'Invalid Entry. Name must start with '
+ '\'Backup_\' and followed by characters [A-Za-z0-9-_]',
+ '\'Backup\' and followed by characters [A-Za-z0-9-_]',
cloud_empty: 'Select cloud configuration',
dir_not_chosen : 'Provide a local directory',
res_file_illegal: 'Invalid Entry. Provide a valid file name',
......@@ -74,7 +74,7 @@ function load_backup(backup) {
container = "";
selected_backup = "";
$("#selected-bar").hide();
$("#backup-name").val('Backup_');
$("#backup-name").val('Backup');
$("#directory").html('');
$("#res-directory").html('');
$("#cloud").val('');
......
......@@ -20,21 +20,21 @@ function get_user_home() {
}
var templates_data = {
"Backup_Home": {
"name": "Backup_Home",
"BackupHome": {
"name": "BackupHome",
"local_dir": get_user_home(),
"cloud": "",
"passphrase": "",
"container": "Backup_Home",
"container": "BackupHome",
"exclude": "",
"include": ""
},
"Backup_etc": {
"name": "Backup_etc",
"BackupEtc": {
"name": "BackupEtc",
"local_dir": "/etc",
"cloud": "",
"passphrase": "",
"container": "Backup_etc",
"container": "BackupEtc",
"exclude": "",
"include": ""
}
......
......@@ -102,7 +102,7 @@
</div>
<div class="small-9 columns error" id="res-backup-name-error">
<input type="text" id="res-backup-name"
placeholder="Backup_[A-Za-z0-9-_]"
placeholder="Backup[A-Za-z0-9-_]"
onchange="check_res_backup_name();">
<small class="error"></small>
</div>
......
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