# This patch file was generated by NetBeans IDE # This patch can be applied using context Tools: Apply Diff Patch action on respective folder. # It uses platform neutral UTF-8 encoding. # Above lines and this line are ignored by the patching process. Index: moodle/grade/report/grader/index.php --- moodle/grade/report/grader/index.php Base (1.65.2.21) +++ moodle/grade/report/grader/index.php Locally Modified (Based On 1.65.2.21) @@ -197,8 +197,11 @@ YAHOO.namespace("graderreport"); function init() { - // Adjust height of header c0 - //"heading_name_row" only exists if static students column is turned on + //if IE 7 (not 6 or 8) MDL-21088 + if(navigator.appVersion.indexOf("MSIE 7")>0) { + // Adjust height of header c0 (firstname/surname cell) in case multiline grade items have pushed down + // the right hand table cells. Only a problem in IE7. This JS fixes IE7 but CAUSES alignment problems in other browsers. + // "heading_name_row" only exists if static students column is turned on var rows = YAHOO.util.Dom.getElementsByClassName('heading_name_row'); if(rows && rows.length>0) { @@ -212,6 +215,7 @@ } } } + } // attach event listener to the table for mouseover and mouseout var table = document.getElementById('user-grades');