MDL-48666 quiz: let JS to get a Qs slot number on the summary page
authorTim Hunt <T.J.Hunt@open.ac.uk>
Fri, 19 Dec 2014 14:34:23 +0000 (14:34 +0000)
committerTim Hunt <T.J.Hunt@open.ac.uk>
Fri, 19 Dec 2014 14:39:15 +0000 (14:39 +0000)
mod/quiz/renderer.php

index 1918c33..4c9a1c0 100644 (file)
@@ -614,7 +614,7 @@ class mod_quiz_renderer extends plugin_renderer_base {
                 $row[] = $attemptobj->get_question_mark($slot);
             }
             $table->data[] = $row;
                 $row[] = $attemptobj->get_question_mark($slot);
             }
             $table->data[] = $row;
-            $table->rowclasses[] = $attemptobj->get_question_state_class(
+            $table->rowclasses[] = 'quizsummary' . $slot . ' ' . $attemptobj->get_question_state_class(
                     $slot, $displayoptions->correctness);
         }
 
                     $slot, $displayoptions->correctness);
         }