1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-22 15:55:48 +03:00

bugfix for tab inner re-initialization

This commit is contained in:
cTn 2014-02-04 18:56:20 +01:00
parent 8686a45831
commit 430d366c8f
2 changed files with 8 additions and 2 deletions

View file

@ -136,7 +136,9 @@ function tab_initialize_initial_setup() {
send_message(MSP_codes.MSP_RESET_CONF, MSP_codes.MSP_RESET_CONF, false, function() { send_message(MSP_codes.MSP_RESET_CONF, MSP_codes.MSP_RESET_CONF, false, function() {
GUI.log('Settings restored to <strong>default</strong>'); GUI.log('Settings restored to <strong>default</strong>');
tab_initialize_initial_setup(); GUI.tab_switch_cleanup(function() {
tab_initialize_initial_setup();
});
}); });
}); });

View file

@ -144,7 +144,11 @@ function tab_initialize_pid_tuning() {
// UI Hooks // UI Hooks
$('a.refresh').click(function() { $('a.refresh').click(function() {
tab_initialize_pid_tuning(); GUI.tab_switch_cleanup(function() {
GUI.log('PID data <strong>refreshed</strong>');
tab_initialize_pid_tuning();
});
}); });
$('a.update').click(function() { $('a.update').click(function() {