Skip to content

Commit

Permalink
MDL-28975 question engine, JavaScript error in IE.
Browse files Browse the repository at this point in the history
  • Loading branch information
timhunt committed Aug 18, 2011
1 parent 24654d9 commit 0a20ddb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions question/qengine.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ M.core_scroll_manager.scroll_to_saved_pos = function(Y) {
// And the following horror is necessary to make it work in IE 8.
// Note that the class ie8 on body is only there in Moodle 2.0 and OU Moodle.
if (Y.one('body').hasClass('ie')) {
M.core_scroll_manager.force_ie_to_scroll(matches[1])
M.core_scroll_manager.force_ie_to_scroll(Y, matches[1])
}
}
}
Expand All @@ -101,7 +101,7 @@ M.core_scroll_manager.scroll_to_saved_pos = function(Y) {
* Beat IE into submission.
* @param targetpos the target scroll position.
*/
M.core_scroll_manager.force_ie_to_scroll = function(targetpos) {
M.core_scroll_manager.force_ie_to_scroll = function(Y, targetpos) {
var hackcount = 25;
function do_scroll() {
window.scrollTo(0, targetpos);
Expand Down

0 comments on commit 0a20ddb

Please sign in to comment.