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 6259988 commit 40adf6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/tablelib.php
Expand Up @@ -1188,7 +1188,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 @@ -1197,7 +1197,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 40adf6d

Please sign in to comment.