]> jspc29.x-matter.uni-frankfurt.de Git - daqtools.git/commitdiff
fixed bug with multi-view and cookies
authorJan Michel <j.michel@gsi.de>
Fri, 23 May 2014 15:59:56 +0000 (17:59 +0200)
committerJan Michel <j.michel@gsi.de>
Fri, 23 May 2014 15:59:56 +0000 (17:59 +0200)
web/htdocs/scripts/xmlpage.js

index 5031f937ce46356b995a2e2cce698525b68473b8..193e8afc4b9903af195db909353e317b9253e2f9 100644 (file)
   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();
     }