X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fmain.js;fp=client%2Fsrc%2Fmain.js;h=7e9ce9cc5541af820bed21a93d5ef0f5ca81aec5;hp=70b7d78a71052e15a5b21eb27e14c3239f1bd6f5;hb=5b4de147a4e2f737c660f3e82f46664a9635477f;hpb=3c18611517fa137f089cbd866cbc8d3f4cc07735 diff --git a/client/src/main.js b/client/src/main.js index 70b7d78a..7e9ce9cc 100644 --- a/client/src/main.js +++ b/client/src/main.js @@ -18,7 +18,12 @@ new Vue({ if (e.code === "Escape") { let modalBoxes = document.querySelectorAll("[id^='modal']"); modalBoxes.forEach(m => { - if (m.checked && m.id != "modalAccept") m.checked = false; + if ( + m.checked && + !["modalAccept","modalConfirm"].includes(m.id) + ) { + m.checked = false; + } }); } });