Skip to content

Commit

Permalink
Merge branch 'MDL-62014-34' of git://github.com/nashtechdev01/moodle …
Browse files Browse the repository at this point in the history
…into MOODLE_34_STABLE
  • Loading branch information
stronk7 committed Jun 19, 2018
2 parents 908a8be + b338e8d commit 288fe4f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion course/completion.js
Expand Up @@ -20,7 +20,8 @@ M.core_completion.init = function(Y) {
var current = args.state.get('value');
var modulename = args.modulename.get('value'),
altstr,
iconkey;
iconkey,
button = args.image.get('parentNode');


if (current == 1) {
Expand All @@ -32,6 +33,7 @@ M.core_completion.init = function(Y) {
iconkey = 'i/completion-manual-n';
args.state.set('value', 1);
}
button.set('title', altstr);

require(['core/templates', 'core/notification'], function(Templates, Notification) {
Templates.renderPix(iconkey, 'core', altstr).then(function(html) {
Expand Down
3 changes: 2 additions & 1 deletion course/renderer.php
Expand Up @@ -551,7 +551,8 @@ public function course_section_cm_completion($course, &$completioninfo, cm_info
$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 {
Expand Down

0 comments on commit 288fe4f

Please sign in to comment.