mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 12:40:01 +01:00
grader report MDL-20179 Fixed broken JS on grader report
This commit is contained in:
parent
f6607a9c16
commit
7f276b00a7
@ -2,14 +2,18 @@ YAHOO.namespace("graderreport");
|
||||
|
||||
YAHOO.graderreport.init = function() {
|
||||
// Adjust height of header c0
|
||||
//"heading_name_row" only exists if static students column is turned on
|
||||
var rows = YAHOO.util.Dom.getElementsByClassName('heading_name_row');
|
||||
var header_cell_region = YAHOO.util.Dom.getRegion();
|
||||
if(header_cell_region)
|
||||
if(rows && rows.length>0)
|
||||
{
|
||||
var height = header_cell_region.bottom - header_cell_region.top;
|
||||
if(!isNan(height))
|
||||
var header_cell_region = YAHOO.util.Dom.getRegion(rows[rows.length-1].firstChild);
|
||||
if(header_cell_region)
|
||||
{
|
||||
YAHOO.util.Dom.setStyle('studentheader', 'height', height + 'px');
|
||||
var height = header_cell_region.bottom - header_cell_region.top;
|
||||
if(!isNan(height))
|
||||
{
|
||||
YAHOO.util.Dom.setStyle('studentheader', 'height', height + 'px');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user