]> jspc29.x-matter.uni-frankfurt.de Git - daqtools.git/commitdiff
xml pages: Don't fold table when editing values
authorJan Michel <j.michel@gsi.de>
Mon, 28 Jan 2019 16:55:45 +0000 (17:55 +0100)
committerJan Michel <j.michel@gsi.de>
Mon, 28 Jan 2019 16:55:45 +0000 (17:55 +0100)
web/htdocs/scripts/scriptsnew.js

index 7cba2088284ce053d2c34498da5f0ddb9d325583..8d361722418872deabaacd3d3e33ec9934342e3f 100644 (file)
@@ -46,7 +46,10 @@ function getdataprint(command,dId,async,time,callback) {
               isNotFolded[i] = 0;
               }
             t[i].number = i;  
-            t[i].onclick = function() {
+            t[i].onclick = function(e) {
+              if(e.target.getAttribute("class") && e.target.getAttribute("class").indexOf("editable")!=-1) {
+                return;
+                }
               this.classList.toggle("folded");
               isNotFolded[this.number] = 1 - isNotFolded[this.number];
               }