]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-16632 "green highlighting should not be applied to grading method in quiz respons...
authorjamiesensei <jamiesensei>
Wed, 24 Sep 2008 09:10:43 +0000 (09:10 +0000)
committerjamiesensei <jamiesensei>
Wed, 24 Sep 2008 09:10:43 +0000 (09:10 +0000)
Reverted earlier patch and instead using a different colour for highlighting graded grade. Now using light yellow with a darker yellow border instead of green which is used in reports to highlight the correct answer.

mod/quiz/report/responses/report.php
mod/quiz/report/responses/responsessettings_form.php

index 37f5fcc4bb1f2cc5fa3e72d53a7eb0568b0147ff..58116ac3e0725edf722de27af2411efb954b80dc 100644 (file)
@@ -165,7 +165,7 @@ class quiz_responses_report extends quiz_default_report {
             // Print information on the grading method and whether we are displaying
             //
             if (!$table->is_downloading()) { //do not print notices when downloading
-                if ($strattempthighlight = quiz_report_highlighting_grading_method($quiz, $qmsubselect, $qmfilter, false)) {
+                if ($strattempthighlight = quiz_report_highlighting_grading_method($quiz, $qmsubselect, $qmfilter)) {
                     echo '<div class="quizattemptcounts">' . $strattempthighlight . '</div>';
                 }
             }
index f915f906a3267cc7e342ebdc74255635ca80123c..c77e129378b752880cae4f467616ed39841e809e 100644 (file)
@@ -28,7 +28,7 @@ class mod_quiz_report_responses_settings extends moodleform {
         }
         $mform->addElement('select', 'attemptsmode', get_string('show', 'quiz_overview'), $options);
         if ($this->_customdata['qmsubselect']){
-            $gm = quiz_get_grading_option_name($this->_customdata['quiz']->grademethod);
+            $gm = '<span class="highlight">'.quiz_get_grading_option_name($this->_customdata['quiz']->grademethod).'</span>';
             $mform->addElement('advcheckbox', 'qmfilter', get_string('show', 'quiz_overview'), get_string('optonlygradedattempts', 'quiz_overview', $gm), null, array(0,1));
         }
 //-------------------------------------------------------------------------------