Commit fbc6369205589e65a6adfbaaa1369d6e0115ea14

Authored by Miguel Barão
1 parent d8d802e1
Exists in master and in 1 other branch dev

move to top of page on submit

Showing 1 changed file with 1 additions and 0 deletions   Show diff stats
static/js/topic.js
... ... @@ -42,6 +42,7 @@ function updateQuestion(response) {
42 42  
43 43  
44 44 function new_question(type, question, tries, progress) {
  45 + window.scrollTo(0, 0);
45 46 $("#question_div").html(question);
46 47 $("#comments, #solution").html("");
47 48 if (type == "info") {
... ...