Fix markers on aux tab
parent
bc47878b30
commit
1fc1e4fdb1
|
@ -409,16 +409,16 @@ TABS.auxiliary.initialize = function (callback) {
|
|||
}
|
||||
return channelPosition;
|
||||
}
|
||||
|
||||
|
||||
function update_marker(auxChannelIndex, channelPosition) {
|
||||
const percentage = (channelPosition - 900) / (2100-900) * 100;
|
||||
|
||||
|
||||
$('.modes .ranges .range').each( function () {
|
||||
const auxChannelCandidateIndex = $(this).find('.channel').val();
|
||||
const auxChannelCandidateIndex = parseInt($(this).find('.channel').val());
|
||||
if (auxChannelCandidateIndex !== auxChannelIndex) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
$(this).find('.marker').css('left', percentage + '%');
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue