main
input#modalNewprob.modal(
type="checkbox"
- @change="infoMsg=''"
+ @change="fenFocusIfOpened($event)"
)
div#newprobDiv(
role="dialog"
button.nomargin(@click="gotoPrevNext($event,curproblem,1)")
| {{ st.tr["Previous"] }}
button.nomargin(@click="gotoPrevNext($event,curproblem,-1)")
- | {{ st.tr["Next"] }}
+ | {{ st.tr["Next_p"] }}
p.oneInstructions.clickable(
v-html="parseHtml(curproblem.instruction)"
@click="curproblem.showSolution=!curproblem.showSolution"
}
},
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;
},