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

add tooltip on header of sortable table

    XMLWordPrintable

Details

    • Improvement
    • Status: Reopened
    • Minor
    • Resolution: Unresolved
    • 3.3.2
    • None
    • Accessibility

    Description

      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);
       }
       

      Attachments

        1. MDL-60172.patch
          0.8 kB
          Guillaume Latour

        Activity

          People

            Unassigned Unassigned
            tazoeur Guillaume Latour
            Adrian Greeve Adrian Greeve
            Damyon Wiese Damyon Wiese
            Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Stevani Andolo
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: