Little correction

This commit is contained in:
Xavier Guimard 2007-02-03 21:46:45 +00:00
parent 086819cd21
commit 58efa9b4b7
1 changed files with 2 additions and 2 deletions

View File

@ -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";