fix all popups being large/wide after first one

This commit is contained in:
LenAnderson 2023-11-20 11:57:55 +00:00
parent 5e6fcd28b2
commit 1dd1cd69ac
1 changed files with 4 additions and 0 deletions

View File

@ -6230,10 +6230,14 @@ function callPopup(text, type, inputValue = '', { okButton, rows, wide, large }
if (wide) {
$("#dialogue_popup").addClass("wide_dialogue_popup");
} else {
$("#dialogue_popup").removeClass("wide_dialogue_popup");
}
if (large) {
$("#dialogue_popup").addClass("large_dialogue_popup");
} else {
$("#dialogue_popup").removeClass("large_dialogue_popup");
}
$("#dialogue_popup_cancel").css("display", "inline-block");