Skip to content

Commit 39a473c

Browse files
committed
disable waterfall sliders in auto mode
1 parent b9e6ffe commit 39a473c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

htdocs/openwebrx.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1398,7 +1398,9 @@ function initSliders() {
13981398
}).on('contextmenu', function(){
13991399
waterfall_measure_minmax_continuous = !waterfall_measure_minmax_continuous;
14001400
waterfallColorsContinuousReset();
1401-
waterfallAutoButton[(waterfall_measure_minmax_continuous ? 'add' : 'remove') + 'Class']('highlighted')
1401+
waterfallAutoButton[waterfall_measure_minmax_continuous ? 'addClass' : 'removeClass']('highlighted');
1402+
$('#openwebrx-waterfall-color-min, #openwebrx-waterfall-color-max').prop('disabled', waterfall_measure_minmax_continuous);
1403+
14021404
return false;
14031405
});
14041406
}

0 commit comments

Comments
 (0)