From 3a8b8f26dda9d7b4099061b2a24a393fb639124c Mon Sep 17 00:00:00 2001 From: Hemna Date: Tue, 26 Nov 2024 12:59:37 -0500 Subject: [PATCH] Fixed webchat popovers not working. We have to call reload_popovers() every time we insert new chat bubbles or the popovers on the new bubbles won't work. --- aprsd/web/chat/static/js/send-message.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/aprsd/web/chat/static/js/send-message.js b/aprsd/web/chat/static/js/send-message.js index f93d1a8..19a5cc1 100644 --- a/aprsd/web/chat/static/js/send-message.js +++ b/aprsd/web/chat/static/js/send-message.js @@ -507,6 +507,7 @@ function sent_msg(msg) { append_message(msg['to_call'], msg, msg_html); save_data(); scroll_main_content(msg['to_call']); + reload_popovers(); } function from_msg(msg) { @@ -533,6 +534,7 @@ function from_msg(msg) { append_message(from, msg, msg_html); save_data(); scroll_main_content(from); + reload_popovers(); } function ack_msg(msg) {