mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
focus type answer area after it's appeared
This commit is contained in:
parent
412d37fc13
commit
d6c8c6e272
1 changed files with 8 additions and 7 deletions
|
@ -38,16 +38,17 @@ function _showQuestion(q, a, bodyclass) {
|
|||
_makeHidden($("#"+currentAns));
|
||||
// and reveal question when processing is done
|
||||
MathJax.Hub.Queue(function () {
|
||||
$("#_question").css("visibility", "visible").fadeTo(fadeTime, 1);
|
||||
$("#_question").css("visibility", "visible").fadeTo(
|
||||
fadeTime, 1, function () {
|
||||
// focus typing area if visible
|
||||
typeans = document.getElementById("typeans");
|
||||
if (typeans) {
|
||||
typeans.focus();
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
// focus typing area if visible
|
||||
typeans = document.getElementById("typeans");
|
||||
if (typeans) {
|
||||
typeans.focus();
|
||||
}
|
||||
|
||||
// return to top of window
|
||||
window.scrollTo(0, 0);
|
||||
|
||||
|
|
Loading…
Reference in a new issue