1
0
mirror of https://github.com/moodle/moodle.git synced 2025-04-25 10:26:17 +02:00

MDL-10730 - After submitting a question in adaptive mode, go back to that question, not the top of the page. Code thanks to Tony Gardner-Medwin, based on my suggestion.

This commit is contained in:
tjhunt 2007-08-06 14:10:46 +00:00
parent 630f31b75c
commit 3d3867b69a

@ -1039,16 +1039,12 @@ class default_questiontype {
allowed. */
if (($cmoptions->optionflags & QUESTION_ADAPTIVE) and !$options->readonly) {
echo '<input type="submit" name="';
echo $question->name_prefix;
echo 'submit" value="';
print_string('mark', 'quiz');
echo '" class="submit btn"';
echo ' />';
echo '<input type="submit" name="', $question->name_prefix, 'submit" value="',
get_string('mark', 'quiz'), '" class="submit btn" onclick="',
"form.action = form.action + '#q", $question->id, "'; return true;", '" />';
}
}
/**
* Return a summary of the student response
*