removing obsolete code / cleaning up
parent
937dcf9742
commit
1f2180be89
|
@ -29,13 +29,7 @@ function tab_initialize_auxiliary_configuration() {
|
|||
}
|
||||
|
||||
// UI Hooks
|
||||
$('.tab-auxiliary_configuration .boxes input').change(function() {
|
||||
// if any of the fields changed, unlock update button
|
||||
$('a.update').addClass('active');
|
||||
});
|
||||
|
||||
$('.tab-auxiliary_configuration a.update').click(function() {
|
||||
if ($(this).hasClass('active')) {
|
||||
// catch the input changes
|
||||
var main_needle = 0;
|
||||
var needle = 0;
|
||||
|
@ -68,10 +62,6 @@ function tab_initialize_auxiliary_configuration() {
|
|||
|
||||
// Save changes to EEPROM
|
||||
send_message(MSP_codes.MSP_EEPROM_WRITE, MSP_codes.MSP_EEPROM_WRITE);
|
||||
|
||||
// remove the active status
|
||||
$(this).removeClass('active');
|
||||
}
|
||||
});
|
||||
|
||||
// enable data pulling
|
||||
|
|
|
@ -99,7 +99,6 @@ function tab_initialize_receiver() {
|
|||
}).change();
|
||||
|
||||
$('a.update').click(function() {
|
||||
if ($(this).hasClass('active')) {
|
||||
// catch RC_tuning changes
|
||||
RC_tuning.throttle_MID = parseFloat($('.tunings .throttle input[name="mid"]').val());
|
||||
RC_tuning.throttle_EXPO = parseFloat($('.tunings .throttle input[name="expo"]').val());
|
||||
|
@ -121,15 +120,6 @@ function tab_initialize_receiver() {
|
|||
|
||||
// Save changes to EEPROM
|
||||
send_message(MSP_codes.MSP_EEPROM_WRITE, MSP_codes.MSP_EEPROM_WRITE);
|
||||
|
||||
// remove the active status
|
||||
$(this).removeClass('active');
|
||||
}
|
||||
});
|
||||
|
||||
$('.tunings input').change(function() {
|
||||
// if any of the fields changed, unlock update button
|
||||
$('a.update').addClass('active');
|
||||
});
|
||||
|
||||
// enable RC data pulling
|
||||
|
|
Loading…
Reference in New Issue