utilizing capability bit

10.3.x-maintenance
cTn 2013-11-11 13:37:03 +01:00
parent 1bc89ae22a
commit 7003a339ff
2 changed files with 6 additions and 0 deletions

View File

@ -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;
}

View File

@ -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();