Merge pull request #1377 from LenAnderson/fix-popups

fix all popups being large/wide after first one
This commit is contained in:
Cohee 2023-11-20 18:25:01 +02:00 committed by GitHub
commit e81c100e13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 6 deletions

View File

@ -6226,13 +6226,9 @@ function callPopup(text, type, inputValue = '', { okButton, rows, wide, large }
popup_type = type;
}
if (wide) {
$("#dialogue_popup").addClass("wide_dialogue_popup");
}
$('#dialogue_popup').toggleClass('wide_dialogue_popup', !!wide);
if (large) {
$("#dialogue_popup").addClass("large_dialogue_popup");
}
$('#dialogue_popup').toggleClass('large_dialogue_popup', !!large);
$("#dialogue_popup_cancel").css("display", "inline-block");
switch (popup_type) {