We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c0a7e5 commit 3081884Copy full SHA for 3081884
static/js/main.js
@@ -28,8 +28,11 @@ $(document).ready(function() {
28
var lti_id = $(this).attr('id');
29
var lti_course_navigation = $(this).data('coursenav')
30
$.get( "get_sessionless_url/" + lti_id + "/" + lti_course_navigation, function( data ) {
31
- document.body.scrollTop = 0; // For Safari
32
- document.documentElement.scrollTop = 0; // For Chrome, Firefox, IE and Opera
+ // IE 8 & 9 only support string data, so send objects as string
+ parent.postMessage(JSON.stringify({
33
+ subject: "lti.scrollToTop",
34
+ }), "*");
35
+
36
window.location.href = data;
37
});
38
0 commit comments