mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
gradebook MDL-20945 Title attribute missing from cells in grader report
This commit is contained in:
parent
097e38cf95
commit
e09e9d55b6
@ -6,11 +6,11 @@ YAHOO.graderreport.init = function() {
|
||||
var rows = YAHOO.util.Dom.getElementsByClassName('heading_name_row');
|
||||
if(rows && rows.length>0)
|
||||
{
|
||||
var header_cell_region = YAHOO.util.Dom.getRegion(rows[rows.length-1].firstChild);
|
||||
var header_cell_region = YAHOO.util.Dom.getRegion(rows[rows.length-1]);
|
||||
if(header_cell_region)
|
||||
{
|
||||
var height = header_cell_region.bottom - header_cell_region.top;
|
||||
if(!isNan(height))
|
||||
if(!isNaN(height))
|
||||
{
|
||||
YAHOO.util.Dom.setStyle('studentheader', 'height', height + 'px');
|
||||
}
|
||||
|
@ -1878,7 +1878,8 @@ class core_renderer extends renderer_base {
|
||||
'id' => $cell->id,
|
||||
'class' => $cell->get_classes_string(),
|
||||
'abbr' => $cell->abbr,
|
||||
'scope' => $cell->scope);
|
||||
'scope' => $cell->scope,
|
||||
'title' => html_entity_decode($cell->title));
|
||||
$tagtype = 'td';
|
||||
if ($cell->header === true) {
|
||||
$tagtype = 'th';
|
||||
|
Loading…
x
Reference in New Issue
Block a user