Skip to content

Commit

Permalink
MDL-71375 lib: Fix tooltip in show_hide_icon in flexible table
Browse files Browse the repository at this point in the history
  • Loading branch information
moniNaydenov authored and lameze committed Aug 30, 2021
1 parent 80c48e1 commit 4edbc6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/tablelib.php
Original file line number Diff line number Diff line change
Expand Up @@ -1196,7 +1196,7 @@ protected function show_hide_link($column, $index) {
'data-action' => 'show',
'data-column' => $column);
return html_writer::link($this->baseurl->out(false, array($this->request[TABLE_VAR_SHOW] => $column)),
$OUTPUT->pix_icon('t/switch_plus', get_string('show')), $linkattributes);
$OUTPUT->pix_icon('t/switch_plus', null), $linkattributes);

} else if ($this->headers[$index] !== NULL) {
$linkattributes = array('title' => get_string('hide') . ' ' . strip_tags($this->headers[$index]),
Expand All @@ -1205,7 +1205,7 @@ protected function show_hide_link($column, $index) {
'data-action' => 'hide',
'data-column' => $column);
return html_writer::link($this->baseurl->out(false, array($this->request[TABLE_VAR_HIDE] => $column)),
$OUTPUT->pix_icon('t/switch_minus', get_string('hide')), $linkattributes);
$OUTPUT->pix_icon('t/switch_minus', null), $linkattributes);
}
}

Expand Down

0 comments on commit 4edbc6c

Please sign in to comment.