removing obsolete code / cleaning up

10.3.x-maintenance
cTn 2014-01-13 14:18:46 +01:00
parent 937dcf9742
commit 1f2180be89
2 changed files with 49 additions and 69 deletions

View File

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

View File

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