-
Improvement
-
Resolution: Won't Do
-
Minor
-
None
-
3.3.2
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);
|
}
|
|