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="tab-configuration tab-advanced-tuning toolbar_fixed_bottom">
<div class="content_wrapper"> <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--> <!-- Airplane Advanced Tuning-->
<div class="airplaneTuning"> <div class="airplaneTuning">
......
...@@ -16,15 +16,21 @@ TABS.advanced_tuning.initialize = function (callback) { ...@@ -16,15 +16,21 @@ TABS.advanced_tuning.initialize = function (callback) {
if (FC.isAirplane()) { if (FC.isAirplane()) {
$('.airplaneTuning').show(); $('.airplaneTuning').show();
$('.airplaneTuningTitle').show();
$('.multirotorTuning').hide(); $('.multirotorTuning').hide();
$('.multirotorTuningTitle').hide();
$('.notFixedWingTuning').hide(); $('.notFixedWingTuning').hide();
} else if (FC.isMultirotor()) { } else if (FC.isMultirotor()) {
$('.airplaneTuning').hide(); $('.airplaneTuning').hide();
$('.airplaneTuningTitle').hide();
$('.multirotorTuning').show(); $('.multirotorTuning').show();
$('.multirotorTuningTitle').show();
$('.notFixedWingTuning').show(); $('.notFixedWingTuning').show();
} else { } else {
$('.airplaneTuning').show(); $('.airplaneTuning').show();
$('.airplaneTuningTitle').hide();
$('.multirotorTuning').show(); $('.multirotorTuning').show();
$('.multirotorTuningTitle').hide();
$('.notFixedWingTuning').show(); $('.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