From 7003a339ff66a6b974ec7c40e0752609b08ed345 Mon Sep 17 00:00:00 2001 From: cTn Date: Mon, 11 Nov 2013 13:37:03 +0100 Subject: [PATCH] utilizing capability bit --- css/style.css | 3 +++ tabs/motor_outputs.js | 3 +++ 2 files changed, 6 insertions(+) diff --git a/css/style.css b/css/style.css index d713f93d..75a33d2f 100644 --- a/css/style.css +++ b/css/style.css @@ -847,6 +847,9 @@ a:hover { border: 1px dotted silver; } + .tab-motor_outputs .motor_testing { + display: none; + } .tab-motor_outputs .motor_testing .sliders { margin-top: 20px; } diff --git a/tabs/motor_outputs.js b/tabs/motor_outputs.js index 2bfc1587..f1c432cb 100644 --- a/tabs/motor_outputs.js +++ b/tabs/motor_outputs.js @@ -2,6 +2,9 @@ function tab_initialize_motor_outputs() { ga_tracker.sendAppView('Motor Outputs Page'); GUI.active_tab = 'motor_outputs'; + // if CAP_DYNBALANCE is true + if (bit_check(CONFIG.capability, 2)) $('div.motor_testing').show(); + // UI hooks $('div.sliders input').change(function() { var index = $(this).index();