Commit 5d3c5e90 authored by Darren Lines's avatar Darren Lines
Browse files

Bug fix for titles when non-FW/MR selected

parent 15dea6b6
<div class="tab-configuration tab-advanced-tuning toolbar_fixed_bottom">
<div class="content_wrapper">
<div class="tab_title"><span data-i18n="tabAdvancedTuningTitle">Advanced Tuning</span><span class="airplaneTuning">: Fixed Wing</span><span class="multirotorTuning">: Multirotors</span></div>
<div class="tab_title"><span data-i18n="tabAdvancedTuningTitle">Advanced Tuning</span><span class="airplaneTuningTitle">: Fixed Wing</span><span class="multirotorTuningTitle">: Multirotors</span></div>
<!-- Airplane Advanced Tuning-->
<div class="airplaneTuning">
......
......@@ -16,15 +16,21 @@ TABS.advanced_tuning.initialize = function (callback) {
if (FC.isAirplane()) {
$('.airplaneTuning').show();
$('.airplaneTuningTitle').show();
$('.multirotorTuning').hide();
$('.multirotorTuningTitle').hide();
$('.notFixedWingTuning').hide();
} else if (FC.isMultirotor()) {
$('.airplaneTuning').hide();
$('.airplaneTuningTitle').hide();
$('.multirotorTuning').show();
$('.multirotorTuningTitle').show();
$('.notFixedWingTuning').show();
} else {
$('.airplaneTuning').show();
$('.airplaneTuningTitle').hide();
$('.multirotorTuning').show();
$('.multirotorTuningTitle').hide();
$('.notFixedWingTuning').show();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment