From e5e15f2e8d169404db2509f47c489c7ee15c9fc1 Mon Sep 17 00:00:00 2001 From: Jan Michel Date: Wed, 31 Jul 2013 11:32:08 +0200 Subject: [PATCH] automatic read-back of settings upon change of channel in threshold GUI --- web/htdocs/thresh/threshold.htm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/web/htdocs/thresh/threshold.htm b/web/htdocs/thresh/threshold.htm index 12429a0..14d4e36 100644 --- a/web/htdocs/thresh/threshold.htm +++ b/web/htdocs/thresh/threshold.htm @@ -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) { -- 2.43.0