]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-10730 - After submitting a question in adaptive mode, go back to that question...
authortjhunt <tjhunt>
Mon, 6 Aug 2007 14:10:46 +0000 (14:10 +0000)
committertjhunt <tjhunt>
Mon, 6 Aug 2007 14:10:46 +0000 (14:10 +0000)
question/type/questiontype.php

index da40a84e357dfe2cfac02be073e47e3602df8bbe..2035657b5881b2c226e6e2a8341d05c8b68935bf 100644 (file)
@@ -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
     *