From: Jan Michel Date: Fri, 23 May 2014 15:59:56 +0000 (+0200) Subject: fixed bug with multi-view and cookies X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=abd9c2c44e26075e15ad03842e7d182d2f363192;p=daqtools.git fixed bug with multi-view and cookies --- diff --git a/web/htdocs/scripts/xmlpage.js b/web/htdocs/scripts/xmlpage.js index 5031f93..193e8af 100644 --- a/web/htdocs/scripts/xmlpage.js +++ b/web/htdocs/scripts/xmlpage.js @@ -81,8 +81,14 @@ function setaddress(e) { address=document.getElementById("address").value; - var part = command.split('-'); - command=part[0]+"-"+address+"-"+part[2]+"-"+part[3]; + com = command.split('&'); + command = ""; + for(i = 0; i < com.length; i++) { + if (com[i] != "") { + var part = com[i].split('-'); + command += part[0]+"-"+part[1]+"-"+part[2] + "-" + part[3] + "&"; + } + } refresh(period); makeCookies(); }