projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bug fix
[vchess.git]
/
client
/
src
/
views
/
Hall.vue
diff --git
a/client/src/views/Hall.vue
b/client/src/views/Hall.vue
index
957ffad
..
b3f5b69
100644
(file)
--- a/
client/src/views/Hall.vue
+++ b/
client/src/views/Hall.vue
@@
-278,6
+278,10
@@
export default {
let elt = !!e
? e.target
: document.getElementById("btn" + letter.toUpperCase() + type);
let elt = !!e
? e.target
: document.getElementById("btn" + letter.toUpperCase() + type);
+ // WARNING: this method is called at created in a setTimeout:
+ // => the page could have changed and element no longer defined.
+ if (!elt)
+ return;
elt.classList.add("active");
if (!!elt.previousElementSibling)
elt.previousElementSibling.classList.remove("active");
elt.classList.add("active");
if (!!elt.previousElementSibling)
elt.previousElementSibling.classList.remove("active");
@@
-297,6
+301,7
@@
export default {
{
// Available, in Hall
this.newchallenge.to = this.people[sid].name;
{
// Available, in Hall
this.newchallenge.to = this.people[sid].name;
+ document.getElementById("modalPeople").checked = false;
doClick("modalNewgame");
}
else
doClick("modalNewgame");
}
else