diff --git a/webbuild/html/webbuild.html b/webbuild/html/webbuild.html index ad922bd..6fb2986 100644 --- a/webbuild/html/webbuild.html +++ b/webbuild/html/webbuild.html @@ -101,6 +101,7 @@ function ajax_getvalues(request,confirm) { secret=getCookie("webbuild-secret"); if (!secret) secret=""; } + if (confirm) { document.getElementById("status").innerHTML = '
'+ @@ -148,6 +149,10 @@ function ajax_getvalues(request,confirm) { for (var i = 0; i < nodes.length; i++) { if (nodes[i].nodeName == "title") { document.title = nodes[i].childNodes[0].nodeValue; + } else if (nodes[i].nodeName == "cookie-user") { + setCookie("webbuild-user", nodes[i].childNodes[0].nodeValue, 1); + } else if (nodes[i].nodeName == "cookie-secret") { + setCookie("webbuild-secret", nodes[i].childNodes[0].nodeValue, 1); } else if (document.getElementById(nodes[i].nodeName) != undefined) { // var node = document.getElementById(nodes[i].nodeName) //alert("replace " + node.nodeValue + "with " + nodes[i].childNodes[0].nodeValue);