Commit 58efa9b4 authored by Xavier Guimard's avatar Xavier Guimard

Little correction

parent 086819cd
......@@ -198,7 +198,7 @@ function insertNewChild(a,b,c) {
}
function newVirtualHost() {
var rep=prompt("$newVirtualHost");
var rep=prompt("$text{newVirtualHost}");
if(rep) {
insertNewChild('virtualHosts',rep,rep)
tree.setUserData(rep,'modif','text');
......@@ -294,7 +294,7 @@ function saveConf(){
function tree2txt(id){
var s=tree.getSubItems(id);
var c=s.split(',');
id = id.replace(/[0-9]*_/,'');
id = id.replace(/^[0-9]*_/,'');
var r='<'+id+"><text>"+ec(tree.getItemText(id))+"</text>\\n";
if((!s) || s=='' || c.length==0){
r+= '<value>'+ec(tree.getUserData(id,'value'))+"</value>\\n";
......
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