MDL-62014 course: Add title to activity completion button

This commit is contained in:
HungTran
2018-06-15 10:18:26 +07:00
parent 9e7c397889
commit d2d82a9d7d
2 changed files with 5 additions and 2 deletions
+2 -1
View File
@@ -551,7 +551,8 @@ class core_course_renderer extends plugin_renderer_base {
$output .= html_writer::empty_tag('input', array(
'type' => 'hidden', 'name' => 'completionstate', 'value' => $newstate));
$output .= html_writer::tag('button',
$this->output->pix_icon('i/completion-' . $completionicon, $imgalt), array('class' => 'btn btn-link'));
$this->output->pix_icon('i/completion-' . $completionicon, $imgalt),
array('class' => 'btn btn-link', 'title' => $imgalt));
$output .= html_writer::end_tag('div');
$output .= html_writer::end_tag('form');
} else {