Permalink
Browse files

grader report MDL-20914 Html tooltips now work in IE on the grader re…

…port
  • Loading branch information...
Andrew Davis
Andrew Davis committed Nov 23, 2009
1 parent ec252f7 commit dcb7585070d621e0ddcdd2953fe8ea620a0b1d5d
Showing with 8 additions and 2 deletions.
  1. +8 −2 grade/report/grader/index.php
@@ -200,8 +200,14 @@ function init() {
// Adjust height of header c0
var rows = YAHOO.util.Dom.getElementsByClassName('heading_name_row');
var header_cell_region = YAHOO.util.Dom.getRegion();
- var height = header_cell_region.bottom - header_cell_region.top;
- YAHOO.util.Dom.setStyle('studentheader', 'height', height + 'px');
+ if(header_cell_region)
+ {
+ var height = header_cell_region.bottom - header_cell_region.top;
+ if(!isNaN(height))
+ {
+ YAHOO.util.Dom.setStyle('studentheader', 'height', height + 'px');
+ }
+ }
// attach event listener to the table for mouseover and mouseout
var table = document.getElementById('user-grades');

0 comments on commit dcb7585

Please sign in to comment.