1
0
Fork 0
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:
cTn 2014-07-10 18:45:18 +02:00
parent 31dcbbfa91
commit 75e0accf75
4 changed files with 33 additions and 46 deletions

View file

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