]> jspc29.x-matter.uni-frankfurt.de Git - daqtools.git/commitdiff
corrected register editing
authorJan Michel <j.michel@gsi.de>
Wed, 6 Nov 2013 12:58:05 +0000 (13:58 +0100)
committerJan Michel <j.michel@gsi.de>
Wed, 6 Nov 2013 12:58:05 +0000 (13:58 +0100)
web/htdocs/layout/blue.css
web/htdocs/scripts/xmlpage.js
xml-db/get.pl

index 733b68ff711d54750be21bdb5a86d37bad4522c8..83660d2bc674145944fdb98a4d212b0ea0da5ece 100644 (file)
@@ -46,7 +46,7 @@ body {
   min-width:1000px;
   margin:50px 0 0 20px;  
   resize:horizontal;
-  overflow:auto;
+/*   overflow:auto; */
   }
 
   
@@ -301,10 +301,11 @@ hr.queryresult  {
 }
 
 
-td.editable {
+.editable {
   background-image:url("edit.png");
   background-repeat:no-repeat;
   background-position:fixed;
+  padding-left:16px;
 }
 
 table.queryresult td.slice, table.queryresult th.slice {
@@ -326,7 +327,7 @@ span.tooltip  {
   top: 2em;  
   padding:3px 5px 5px 5px;
 /*   background:#ffe; */
-  background: linear-gradient(135deg, rgba(245,245,238,1) 0%,rgba(255,255,230,1) 100%);
+  background: linear-gradient(135deg, rgba(255,255,238,1) 0%,rgba(250,250,220,1) 100%);
   border:2px solid #fff;
   color:black;
   text-align:left;
@@ -346,5 +347,4 @@ th:hover .tooltip, td:hover .tooltip {
 table.queryresult th div, table.queryresult td div {
   position:relative;
   cursor:default;
-  min-width:80px;
 }
\ No newline at end of file
index 1d5c05783dc43806c85583eaffac5d7d37f39a1b..10616218fd2a11448e1a0b7e2af63769e940745e 100644 (file)
@@ -1,10 +1,11 @@
   function editsetting(e) {
     if(e.target.getAttribute("class") && e.target.getAttribute("class").indexOf("editable")!=-1) {
-      var text = e.target.getAttribute("cstr");
-          text += "\nCurrent Value: "+e.target.innerHTML+" ("+e.target.getAttribute("raw")+")\n ";
-      var newval = prompt(text,e.target.getAttribute("raw"));
+      var text = e.target.parentNode.getAttribute("cstr");
+      var curr = e.target.innerHTML.split('<',1);
+          text += "\nCurrent Value: "+curr+" ("+e.target.parentNode.getAttribute("raw")+")\n ";
+      var newval = prompt(text,e.target.parentNode.getAttribute("raw"));
       if (newval != null) {
-        getdataprint('../xml-db/put.pl?'+e.target.getAttribute("cstr")+'-'+newval,'returntext',false,-1,refresh);
+        getdataprint('../xml-db/put.pl?'+e.target.parentNode.getAttribute("cstr")+'-'+newval,'returntext',false,-1,refresh);
         }
       }
     }
index f9497e45226087624994b381faf8d85f165ce2a7..c20b629f4ef2f3115f45c36abcfb65b321d3e8e2 100755 (executable)
@@ -131,11 +131,11 @@ sub FormatPretty {
   my $ret, my $cl;
   if (defined $cont) {
     my $isflag = 1; $isflag = 0 if $obj->{noflag};
-    $cl = "class=\"$class ".($value?"bad":"good")."\"" if     ( $obj->{errorflag} && !$obj->{invertflag} && $isflag);
-    $cl = "class=\"$class ".($value?"good":"bad")."\"" if     ( $obj->{errorflag} &&  $obj->{invertflag} && $isflag);
-    $cl = "class=\"$class ".($value?"high":"low")."\"" if     (!$obj->{errorflag} && !$obj->{invertflag} && $isflag);
-    $cl = "class=\"$class ".($value?"low":"high")."\"" if     (!$obj->{errorflag} &&  $obj->{invertflag} && $isflag);
-    $cl .= sprintf(" cstr=\"$cstr\" raw=\"0x%x\"><div>",$rawvalue);
+    $cl = "class=\"".($value?"bad":"good")."\"" if     ( $obj->{errorflag} && !$obj->{invertflag} && $isflag);
+    $cl = "class=\"".($value?"good":"bad")."\"" if     ( $obj->{errorflag} &&  $obj->{invertflag} && $isflag);
+    $cl = "class=\"".($value?"high":"low")."\"" if     (!$obj->{errorflag} && !$obj->{invertflag} && $isflag);
+    $cl = "class=\"".($value?"low":"high")."\"" if     (!$obj->{errorflag} &&  $obj->{invertflag} && $isflag);
+    $cl .= sprintf(" cstr=\"$cstr\" raw=\"0x%x\"><div class=\"$class\">",$rawvalue);
     
     $ret = "<$cont ";
     for($obj->{format}) {