fixed AN hide.show

This commit is contained in:
RossAscends
2023-05-21 17:49:30 +09:00
parent 0baacfbaed
commit 0f040eb4b0

View File

@ -5667,8 +5667,8 @@ $(document).ready(function () {
var id = $(this).attr("id");
if (id == "option_toggle_AN") {
if (selected_group || this_chid !== undefined
&& $("#floatingPrompt").css("display") !== 'flex') {
if (selected_group || this_chid) {
if ($("#floatingPrompt").css("display") !== 'flex') {
$("#floatingPrompt").css("display", "flex");
$("#floatingPrompt").css("opacity", 0.0);
$("#floatingPrompt").transition({
@ -5697,6 +5697,7 @@ $(document).ready(function () {
}
}
}
if (id == "option_select_chat") {
if ((selected_group && !is_group_generating) || (this_chid !== undefined && !is_send_press)) {