Merge branch 'MDL-67653_38' of https://github.com/timhunt/moodle into MOODLE_38_STABLE

This commit is contained in:
Adrian Greeve
2020-01-22 11:04:09 +08:00
5 changed files with 18 additions and 10 deletions
-4
View File
@@ -39,10 +39,6 @@
border: 1px solid #dcdcdc;
}
body.jsenabled .questionflagcheckbox {
display: none;
}
#page-mod-quiz-attempt #connection-ok,
#page-mod-quiz-attempt #connection-error {
position: fixed;
+5 -3
View File
@@ -323,21 +323,23 @@ class core_question_renderer extends plugin_renderer_base {
if ($flagged) {
$icon = 'i/flagged';
$alt = get_string('flagged', 'question');
$label = get_string('clickunflag', 'question');
} else {
$icon = 'i/unflagged';
$alt = get_string('notflagged', 'question');
$label = get_string('clickflag', 'question');
}
$attributes = array(
'src' => $this->image_url($icon),
'alt' => $alt,
'class' => 'questionflagimage',
);
if ($id) {
$attributes['id'] = $id;
}
$img = html_writer::empty_tag('img', $attributes);
if ($flagged) {
$img .= ' ' . get_string('flagged', 'question');
}
$img .= html_writer::span($label);
return $img;
}
+5 -1
View File
@@ -414,7 +414,11 @@ body.path-question-type {
vertical-align: text-bottom;
}
.que input.questionflagimage {
body.jsenabled .questionflag input[type=checkbox] {
display: none;
}
.que .questionflagimage {
padding-right: 3px;
height: 16px;
width: 16px;
+4 -1
View File
@@ -15282,7 +15282,10 @@ body.path-question-type {
.que .questioncorrectnessicon {
vertical-align: text-bottom; }
.que input.questionflagimage {
body.jsenabled .questionflag input[type=checkbox] {
display: none; }
.que .questionflagimage {
padding-right: 3px;
height: 16px;
width: 16px; }
+4 -1
View File
@@ -15545,7 +15545,10 @@ body.path-question-type {
.que .questioncorrectnessicon {
vertical-align: text-bottom; }
.que input.questionflagimage {
body.jsenabled .questionflag input[type=checkbox] {
display: none; }
.que .questionflagimage {
padding-right: 3px;
height: 16px;
width: 16px; }