gradebook MDL-20945 Title attribute missing from cells in grader report

This commit is contained in:
Andrew Davis 2009-12-17 07:29:57 +00:00
parent 097e38cf95
commit e09e9d55b6
2 changed files with 4 additions and 3 deletions

View File

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

View File

@ -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';