mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Bug #5825 redonly attribute does not work on checkboxes, so using disabled instead when displaying quizzes read-only.
This commit is contained in:
parent
b282e815d5
commit
1cc1fa2425
3 changed files with 3 additions and 3 deletions
|
@ -315,7 +315,7 @@ class embedded_cloze_qtype extends default_questiontype {
|
|||
? ' selected="selected" ' : '';
|
||||
$outputoptions .= "<option value=\"$mcanswer->id\" $selected>$mcanswer->answer</option>";
|
||||
}
|
||||
echo "<select $popup $readonly $style name=\"$inputname\">";
|
||||
echo "<select $popup $disabled $style name=\"$inputname\">";
|
||||
echo $outputoptions;
|
||||
echo '</select>';
|
||||
break;
|
||||
|
|
|
@ -258,7 +258,7 @@ class question_multichoice_qtype extends default_questiontype {
|
|||
|
||||
$answers = &$question->options->answers;
|
||||
$correctanswers = $this->get_correct_responses($question, $state);
|
||||
$readonly = empty($options->readonly) ? '' : 'readonly="readonly"';
|
||||
$readonly = empty($options->readonly) ? '' : 'disabled="disabled"';
|
||||
|
||||
$formatoptions = new stdClass;
|
||||
$formatoptions->noclean = true;
|
||||
|
|
|
@ -137,7 +137,7 @@ class question_truefalse_qtype extends default_questiontype {
|
|||
$cmoptions, $options) {
|
||||
global $CFG;
|
||||
|
||||
$readonly = $options->readonly ? ' readonly="readonly"' : '';
|
||||
$readonly = $options->readonly ? ' disabled="disabled"' : '';
|
||||
$formatoptions->noclean = true;
|
||||
$formatoptions->para = false;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue