Skip to content
Snippets Groups Projects
Commit 23653b52 authored by TamaraGunkel's avatar TamaraGunkel
Browse files

Fixes #8 use class instead of general identifier

parent 7d698995
No related branches found
No related tags found
No related merge requests found
......@@ -39,7 +39,7 @@ define(['jquery'], function($) {
xhrFields: {withCredentials: true},
data: $('#ltiLaunchForm').serialize(),
complete: function () {
$("iframe").each(function () {
$(".ocplayer").each(function () {
$(this).attr('src', $(this).data('framesrc'));
});
}
......
......@@ -57,6 +57,7 @@ function filter_opencast_login() {
$params['context_id'] = $COURSE->id;
$params['context_label'] = trim($COURSE->shortname);
$params['context_title'] = trim($COURSE->fullname);
$params['resource_link_id'] = 'o' . random_int(1000,9999) . '-' . random_int(1000,9999);
$params['resource_link_title'] = 'Opencast';
$params['context_type'] = ($COURSE->format == 'site') ? 'Group' : 'CourseSection';
$params['lis_person_name_given'] = $USER->firstname;
......@@ -79,7 +80,6 @@ function filter_opencast_login() {
} else {
$params['tool_consumer_instance_name'] = get_site()->shortname;
}
$params['tool_consumer_instance_description'] = trim(html_to_text(get_site()->fullname, 0));
$params['launch_presentation_document_target'] = 'iframe';
$params['oauth_signature_method'] = 'HMAC-SHA1';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment