Display selected group name

This commit is contained in:
SillyLossy
2023-03-19 01:05:39 +02:00
parent 971f1c40b7
commit 95ca39d8e0
2 changed files with 9 additions and 7 deletions

View File

@ -2453,8 +2453,6 @@ function select_selected_character(chid) {
setRightTabSelectedClass('rm_button_selected_ch');
var display_name = characters[chid].name;
$("#rm_button_selected_ch").children("h2").text(display_name);
//create text poles
$("#rm_button_back").css("display", "none");
//$("#character_import_button").css("display", "none");
@ -3034,8 +3032,12 @@ $(document).ready(function () {
select_rm_create();
});
$("#rm_button_selected_ch").click(function () {
selected_button = "character_edit";
select_selected_character(this_chid);
if (selected_group) {
select_group_chats(selected_group);
} else {
selected_button = "character_edit";
select_selected_character(this_chid);
}
});
$(document).on("click", ".character_select", function () {

View File

@ -486,7 +486,7 @@ function select_group_chats(chat_id) {
});
$("#rm_group_filter").val("").trigger("input");
selectRightMenuWithAnimation('rm_group_chats_block')
selectRightMenuWithAnimation('rm_group_chats_block');
async function memberClickHandler(event) {
event.stopPropagation();
@ -578,8 +578,8 @@ function select_group_chats(chat_id) {
// top bar
if (group) {
$("#rm_button_selected_ch").children("h2").text("");
setRightTabSelectedClass();
$("#rm_button_selected_ch").children("h2").text(groupName);
setRightTabSelectedClass('rm_button_selected_ch');
}
}