fix undefined zoom

This commit is contained in:
Spmario233 2023-09-19 10:56:41 +08:00
parent 8682cd0808
commit 48aff38a5f
1 changed files with 3 additions and 3 deletions

View File

@ -16159,7 +16159,7 @@
event.dialog.buttons=event.dialog.buttons.concat(ui.create.buttons(shown,'card',buttons));
event.dialog.buttons=event.dialog.buttons.concat(ui.create.buttons(hidden,'blank',buttons));
if(event.dialog.forcebutton!==false) event.dialog.forcebutton=true;
if(event.dialog.buttons.length>3||(zoom&&event.dialog.buttons.length>5)){
if(event.dialog.buttons.length>3){
event.dialog.classList.remove('forcebutton-auto');
}
else if(!event.dialog.noforcebutton){
@ -16314,7 +16314,7 @@
event.dialog.buttons=event.dialog.buttons.concat(ui.create.buttons(shown,'card',buttons));
event.dialog.buttons=event.dialog.buttons.concat(ui.create.buttons(hidden,'blank',buttons));
if(event.dialog.forcebutton!==false) event.dialog.forcebutton=true;
if(event.dialog.buttons.length>3||(zoom&&event.dialog.buttons.length>5)){
if(event.dialog.buttons.length>3){
event.dialog.classList.remove('forcebutton-auto');
}
else if(!event.dialog.noforcebutton){
@ -16493,7 +16493,7 @@
event.dialog.buttons=event.dialog.buttons.concat(ui.create.buttons(shown,'card',buttons));
event.dialog.buttons=event.dialog.buttons.concat(ui.create.buttons(hidden,'blank',buttons));
if(event.dialog.forcebutton!==false) event.dialog.forcebutton=true;
if(event.dialog.buttons.length>3||(zoom&&event.dialog.buttons.length>5)){
if(event.dialog.buttons.length>3){
event.dialog.classList.remove('forcebutton-auto');
}
else if(!event.dialog.noforcebutton){