Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-60172

add tooltip on header of sortable table

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Won't Do
    • Icon: Minor Minor
    • None
    • 3.3.2
    • Accessibility

      There is currently no tooltip displayed when hovering a header of a sortable table.

      With this little change in lib/tablelib.php there will be one :

      diff --git a/lib/tablelib.php b/lib/tablelib.php
      index d1f1adc..6a6a621 100644
      --- a/lib/tablelib.php
      +++ b/lib/tablelib.php
      @@ -1343,10 +1343,10 @@ class flexible_table \{
       * @return string HTML fragment.
       */
       protected function sort_link($text, $column, $isprimary, $order) \{
      + $sort_by = get_string('sortby') . ' ' . $text . ' (' . $this->sort_order_name($isprimary,$order) .')';
       return html_writer::link($this->baseurl->out(false,
       array($this->request[TABLE_VAR_SORT] => $column)),
      - $text . get_accesshide(get_string('sortby') . ' ' .
      - $text . ' ' . $this->sort_order_name($isprimary, $order))) . ' ' .
      + $text . get_accesshide($sort_by),['title'=>$sort_by]) . ' ' .
       $this->sort_icon($isprimary, $order);
       }
       

            Unassigned Unassigned
            tazoeur Guillaume Latour
            Adrian Greeve Adrian Greeve
            Damyon Wiese Damyon Wiese
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.