projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixes
[vchess.git]
/
client
/
src
/
views
/
Problems.vue
diff --git
a/client/src/views/Problems.vue
b/client/src/views/Problems.vue
index
2d6ac69
..
7621fe3
100644
(file)
--- a/
client/src/views/Problems.vue
+++ b/
client/src/views/Problems.vue
@@
-2,7
+2,7
@@
main
input#modalNewprob.modal(
type="checkbox"
main
input#modalNewprob.modal(
type="checkbox"
- @change="
infoMsg=''
"
+ @change="
fenFocusIfOpened($event)
"
)
div#newprobDiv(
role="dialog"
)
div#newprobDiv(
role="dialog"
@@
-193,6
+193,12
@@
export default {
}
},
methods: {
}
},
methods: {
+ fenFocusIfOpened: function(event) {
+ if (event.target.checked) {
+ this.infoMsg = "";
+ document.getElementById("inputFen").focus();
+ }
+ },
setVname: function(prob) {
prob.vname = this.st.variants.find(v => v.id == prob.vid).name;
},
setVname: function(prob) {
prob.vname = this.st.variants.find(v => v.id == prob.vid).name;
},