]> jspc29.x-matter.uni-frankfurt.de Git - daqtools.git/commitdiff
automatic read-back of settings upon change of channel in threshold GUI
authorJan Michel <j.michel@gsi.de>
Wed, 31 Jul 2013 09:32:08 +0000 (11:32 +0200)
committerJan Michel <j.michel@gsi.de>
Wed, 31 Jul 2013 09:32:08 +0000 (11:32 +0200)
web/htdocs/thresh/threshold.htm

index 12429a0048ce7f0b2ab454efc9c8b080d6620fda..14d4e3629bc7c024a546e996c6dd2753060487fe 100644 (file)
@@ -115,10 +115,10 @@ function setValues() {
     }
   }
 
-Mousetrap.bind('c', function() { ++chan; chan %= 16; document.getElementById("form_channel").value = chan });  
-Mousetrap.bind('d', function() { ++chain; chain %= 16; document.getElementById("form_chain").value = chain });  
-Mousetrap.bind(['C','v'], function() { --chan;  chan%=16;  if (chan<0)  chan=15;  document.getElementById("form_channel").value = chan });  
-Mousetrap.bind(['D','f'], function() { --chain; chain%=16; if (chain<0) chain=15; document.getElementById("form_chain").value = chain });  
+Mousetrap.bind('c', function() { ++chan; chan %= 16; document.getElementById("form_channel").value = chan; setValues(); });  
+Mousetrap.bind('d', function() { ++chain; chain %= 16; document.getElementById("form_chain").value = chain; setValues(); });  
+Mousetrap.bind(['C','v'], function() { --chan;  chan%=16;  if (chan<0)  chan=15;  document.getElementById("form_channel").value = chan; setValues(); });  
+Mousetrap.bind(['D','f'], function() { --chain; chain%=16; if (chain<0) chain=15; document.getElementById("form_chain").value = chain; setValues(); });  
  
 
 function changebar(i) {