mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-23 08:15:22 +03:00
hookup new cleanup system
This commit is contained in:
parent
31dcbbfa91
commit
75e0accf75
4 changed files with 33 additions and 46 deletions
|
@ -414,5 +414,11 @@ tabs.sensors.initialize = function(callback) {
|
|||
};
|
||||
|
||||
tabs.sensors.cleanup = function(callback) {
|
||||
serial.empty_output_buffer();
|
||||
|
||||
// sensor data tab uses scrollbars, emptying the content before loading another tab
|
||||
// prevents scrollbar exposure to any of the tabs while new content is loaded in
|
||||
$('#content').empty();
|
||||
|
||||
if (callback) callback();
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue