From abd9c2c44e26075e15ad03842e7d182d2f363192 Mon Sep 17 00:00:00 2001 From: Jan Michel Date: Fri, 23 May 2014 17:59:56 +0200 Subject: [PATCH] fixed bug with multi-view and cookies --- web/htdocs/scripts/xmlpage.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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(); } -- 2.43.0