Change to .toggle

10.7.0-preview
Asizon 2020-02-22 09:42:30 +01:00
parent 4455e6733d
commit 0c3785b9f5
2 changed files with 3 additions and 7 deletions

View File

@ -1107,11 +1107,7 @@ TABS.configuration.initialize = function (callback, scrollPosition) {
$('input[id="accHardwareSwitch"]').change(function() { $('input[id="accHardwareSwitch"]').change(function() {
if(semver.gte(CONFIG.apiVersion, "1.37.0")) { if(semver.gte(CONFIG.apiVersion, "1.37.0")) {
var checked = $(this).is(':checked'); var checked = $(this).is(':checked');
if (checked) { $('.accelNeeded').toggle(checked);
$('.accelDisabled').show()
} else {
$('.accelDisabled').hide()
}
} }
}); });

View File

@ -331,7 +331,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="gui_box grey accelDisabled"> <div class="gui_box grey accelNeeded">
<div class="gui_box_titlebar"> <div class="gui_box_titlebar">
<div class="spacer_box_title" i18n="configurationAccelTrims"></div> <div class="spacer_box_title" i18n="configurationAccelTrims"></div>
</div> </div>
@ -348,7 +348,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="gui_box grey accelDisabled"> <div class="gui_box grey accelNeeded">
<div class="gui_box_titlebar"> <div class="gui_box_titlebar">
<div class="spacer_box_title" i18n="configurationArming"></div> <div class="spacer_box_title" i18n="configurationArming"></div>
<div class="helpicon cf_tip" i18n_title="configurationArmingHelp"></div> <div class="helpicon cf_tip" i18n_title="configurationArmingHelp"></div>