mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-24 00:35:26 +03:00
Added callback for log close animation, on close the log now scrolls to the most recent log entry.
This commit is contained in:
parent
7ca376926a
commit
e6579a9fbe
1 changed files with 7 additions and 4 deletions
5
main.js
5
main.js
|
@ -315,7 +315,10 @@ $(document).ready(function () {
|
||||||
$("#showlog").on('click', function() {
|
$("#showlog").on('click', function() {
|
||||||
var state = $(this).data('state');
|
var state = $(this).data('state');
|
||||||
if ( state ) {
|
if ( state ) {
|
||||||
$("#log").animate({height: 27}, 200);
|
$("#log").animate({height: 27}, 200, function() {
|
||||||
|
var command_log = $('div#log');
|
||||||
|
command_log.scrollTop($('div.wrapper', command_log).height());
|
||||||
|
});
|
||||||
$("#log").removeClass('active');
|
$("#log").removeClass('active');
|
||||||
$("#content").removeClass('logopen');
|
$("#content").removeClass('logopen');
|
||||||
$(".tab_container").removeClass('logopen');
|
$(".tab_container").removeClass('logopen');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue