mirror of
https://github.com/ankitects/anki.git
synced 2025-09-23 16:26:40 -04:00
scroll to top of question
This commit is contained in:
parent
c7c6204cf8
commit
cb209fd86f
1 changed files with 2 additions and 0 deletions
|
@ -119,6 +119,8 @@ function _updateQA (q, answerMode, klass) {
|
||||||
}
|
}
|
||||||
if (answerMode) {
|
if (answerMode) {
|
||||||
window.location = "#answer";
|
window.location = "#answer";
|
||||||
|
} else {
|
||||||
|
window.scrollTo(0, 0);
|
||||||
}
|
}
|
||||||
if (klass) {
|
if (klass) {
|
||||||
document.body.className = klass;
|
document.body.className = klass;
|
||||||
|
|
Loading…
Reference in a new issue