diff --git a/_locales/en/messages.json b/_locales/en/messages.json index aa45c655..1410b247 100755 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -547,10 +547,10 @@ "message": "Remember to set the NRF24 protocol after enabling." }, "featureSOFTSPI": { - "message": "Enable CPU based SPI" + "message": "CPU based SPI" }, "featurePWM_SERVO_DRIVER": { - "message": "Enable external PWM servo driver" + "message": "External PWM servo driver" }, "featurePWM_SERVO_DRIVERTip": { "message": "Use external PCA9685 PMW driver to connect up to 16 servos to flight controller. PCA9685 has to be connected to enable this feature." diff --git a/js/fc.js b/js/fc.js index 2b8553c6..b5b98bb4 100644 --- a/js/fc.js +++ b/js/fc.js @@ -388,7 +388,7 @@ var FC = { {bit: 27, group: 'other', name: 'PWM_SERVO_DRIVER', haveTip: true} ); } - return features; + return features.reverse(); }, isFeatureEnabled: function (featureName, features) { for (var i = 0; i < features.length; i++) { diff --git a/tabs/configuration.css b/tabs/configuration.css index bc8e606b..4dc65ce9 100644 --- a/tabs/configuration.css +++ b/tabs/configuration.css @@ -1,33 +1,3 @@ -.tab-configuration table { - margin-bottom: 10px; - width: 100%; - float: left; -} - -.tab-configuration table, .tab-configuration table th, .tab-configuration table td { - padding: 0; - text-align: left; -} - -.tab-configuration table th { - padding: 3px; - border-bottom: 1px solid #ddd; -} - -.tab-configuration table td { - padding-left: 5px; - border-bottom: 1px solid #ddd; -} - -.tab-configuration table tr td:first-child { - text-align: left; - width: 55px; -} - -.tab-configuration table td { - padding: 5px 0; -} - .tab-configuration { position: relative; } @@ -228,6 +198,7 @@ hr { .config-section .checkbox, .config-section .number { position: relative; + height: 22px; } .config-section label { @@ -240,14 +211,14 @@ hr { position: inherit; } -.config-section .features label { - position: inherit; -} - -.sensors select { +.config-section select { width: 8em; } .tab-configuration .gps_ubx_sbas { width: 8em; +} + +.config-section .helpicon { + margin-top: 3px; } \ No newline at end of file diff --git a/tabs/configuration.html b/tabs/configuration.html index b05a321c..379f1b7c 100644 --- a/tabs/configuration.html +++ b/tabs/configuration.html @@ -114,18 +114,8 @@
- - - - - - - - - - - -
+
+

@@ -156,11 +146,10 @@

- - - - -
+ +
+ +
@@ -264,12 +248,8 @@
- - - - -
- +
+
@@ -280,8 +260,8 @@
- - - - -
+
+ +
@@ -418,11 +396,9 @@
- - - - -
+
+ +
-
+
+
- - - - - - - - - - - -
+
+
diff --git a/tabs/configuration.js b/tabs/configuration.js index a7ac4c6e..0926ad64 100644 --- a/tabs/configuration.js +++ b/tabs/configuration.js @@ -134,18 +134,14 @@ TABS.configuration.initialize = function (callback, scrollPosition) { + feature_tip_html + ''); radioGroups.push(features[i].group); } else { - row_e = $('' - + feature_tip_html + ''); + + row_e = $('
' + + '' + + '' + + feature_tip_html + + '
'); var feature_e = row_e.find('input.feature'); @@ -155,7 +151,7 @@ TABS.configuration.initialize = function (callback, scrollPosition) { features_e.each(function () { if ($(this).hasClass(features[i].group)) { - $(this).append(row_e); + $(this).after(row_e); } }); } @@ -526,7 +522,9 @@ TABS.configuration.initialize = function (callback, scrollPosition) { $('#deadband-3d-throttle-container').remove(); } - $('input[type="checkbox"].feature', features_e).change(function () { + $('input[type="checkbox"].feature').change(function () { + + console.log('we have change'); var element = $(this), index = element.data('bit'), state = element.is(':checked');