From 39a473c8c2e7a2fe719284b4be25fb131d586c16 Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Sun, 13 Sep 2020 13:38:44 +0200 Subject: [PATCH] disable waterfall sliders in auto mode --- htdocs/openwebrx.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/htdocs/openwebrx.js b/htdocs/openwebrx.js index d072c71..06883bc 100644 --- a/htdocs/openwebrx.js +++ b/htdocs/openwebrx.js @@ -1398,7 +1398,9 @@ function initSliders() { }).on('contextmenu', function(){ waterfall_measure_minmax_continuous = !waterfall_measure_minmax_continuous; waterfallColorsContinuousReset(); - waterfallAutoButton[(waterfall_measure_minmax_continuous ? 'add' : 'remove') + 'Class']('highlighted') + waterfallAutoButton[waterfall_measure_minmax_continuous ? 'addClass' : 'removeClass']('highlighted'); + $('#openwebrx-waterfall-color-min, #openwebrx-waterfall-color-max').prop('disabled', waterfall_measure_minmax_continuous); + return false; }); }