disable waterfall sliders in auto mode

This commit is contained in:
Jakob Ketterl 2020-09-13 13:38:44 +02:00
parent b9e6ffe03d
commit 39a473c8c2

View File

@ -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;
});
}