Skip to content

Commit ac47d2f

Browse files
authored
Merge pull request #2657 from limonspb/10.7.1_gyro_slider_fix
10.7.1 bugfix: gyro slider
2 parents 54e649f + 9c61e95 commit ac47d2f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/js/TuningSliders.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -214,10 +214,10 @@ TuningSliders.updateFilterSlidersDisplay = function() {
214214
$('.pid_filter input[name="gyroLowpass2Frequency"]').val() != Math.round(this.FILTER_DEFAULT.gyro_lowpass2_hz * this.gyroFilterSliderValue) ||
215215
$('.pid_filter select[name="gyroLowpass2Type"]').val() != this.FILTER_DEFAULT.gyro_lowpass2_type) {
216216

217-
$('.tuningFilterSliders .sliderLabels tr:first-child').hide();
217+
$('#pidTuningGyroFilterSliderRow').hide();
218218
this.filterGyroSliderUnavailable = true;
219219
} else {
220-
$('.tuningFilterSliders .sliderLabels tr:first-child').show()
220+
$('#pidTuningGyroFilterSliderRow').show()
221221
this.cachedGyroSliderValues = true;
222222
}
223223

@@ -227,10 +227,10 @@ TuningSliders.updateFilterSlidersDisplay = function() {
227227
$('.pid_filter input[name="dtermLowpass2Frequency"]').val() != Math.round(this.FILTER_DEFAULT.dterm_lowpass2_hz * this.dtermFilterSliderValue) ||
228228
$('.pid_filter select[name="dtermLowpass2Type"]').val() != this.FILTER_DEFAULT.dterm_lowpass2_type) {
229229

230-
$('.tuningFilterSliders .sliderLabels tr:last-child').hide();
230+
$('#pidTuningDTermFilterSliderRow').hide();
231231
this.filterDTermSliderUnavailable = true;
232232
} else {
233-
$('.tuningFilterSliders .sliderLabels tr:last-child').show();
233+
$('#pidTuningDTermFilterSliderRow').show();
234234
this.cachedDTermSliderValues = true;
235235
}
236236

src/tabs/pid_tuning.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -971,7 +971,7 @@
971971
<span i18n="pidTuningGyroFilterSlider"></span>
972972
</td>
973973
</tr>
974-
<tr>
974+
<tr id="pidTuningGyroFilterSliderRow">
975975
<td class="sm-min">
976976
<span i18n="pidTuningGyroFilterSlider"></span>
977977
</td>
@@ -990,7 +990,7 @@
990990
<span i18n="pidTuningDTermFilterSlider"></span>
991991
</td>
992992
</tr>
993-
<tr>
993+
<tr id="pidTuningDTermFilterSliderRow">
994994
<td class="sm-min">
995995
<span i18n="pidTuningDTermFilterSlider"></span>
996996
</td>

0 commit comments

Comments
 (0)