projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
More adapted confirm div size: follow current board size
[vchess.git]
/
client
/
src
/
main.js
diff --git
a/client/src/main.js
b/client/src/main.js
index
70b7d78
..
7e9ce9c
100644
(file)
--- 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 (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;
+ }
});
}
});
});
}
});