mirror of
https://github.com/craigerl/aprsd.git
synced 2025-04-10 05:28:58 -04:00
Fixed scrolling problem with new webchat sent msg
The Webchat ui was failing to scroll properly upon sending a new message from a tab that had a lot of messages already.
This commit is contained in:
parent
8728926bf4
commit
2e9cf3ce88
@ -413,7 +413,6 @@ function append_message(callsign, msg, msg_html) {
|
||||
}
|
||||
|
||||
// Find the right div to place the html
|
||||
|
||||
new_callsign = add_callsign(callsign, msg);
|
||||
update_callsign_path(callsign, msg);
|
||||
append_message_html(callsign, msg_html, new_callsign);
|
||||
@ -502,7 +501,7 @@ function sent_msg(msg) {
|
||||
msg_html = create_message_html(d, t, msg['from_call'], msg['to_call'], msg['message_text'], ack_id, msg, false);
|
||||
append_message(msg['to_call'], msg, msg_html);
|
||||
save_data();
|
||||
scroll_main_content(msg['from_call']);
|
||||
scroll_main_content(msg['to_call']);
|
||||
}
|
||||
|
||||
function from_msg(msg) {
|
||||
|
Loading…
Reference in New Issue
Block a user