Skip to content

Commit

Permalink
Merge pull request #16 from ucfopen/develop
Browse files Browse the repository at this point in the history
JS Scroll to Top
  • Loading branch information
ssilverm authored May 21, 2020
2 parents 85b7512 + 414c979 commit cb8f76a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions static/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ $(document).ready(function() {
var lti_id = $(this).attr('id');
var lti_course_navigation = $(this).data('coursenav')
$.get( "get_sessionless_url/" + lti_id + "/" + lti_course_navigation, function( data ) {
// IE 8 & 9 only support string data, so send objects as string
parent.postMessage(JSON.stringify({
subject: "lti.scrollToTop",
}), "*");

window.location.href = data;
});

Expand Down

0 comments on commit cb8f76a

Please sign in to comment.