Make Questionset commit its introPage BackgroundImage to copyright-Button overview as well as all the others

pull/22/head
Julian Strecker 2018-01-05 15:52:39 +01:00
parent 9ba1c2b5bc
commit dd389f9426
1 changed files with 7 additions and 0 deletions

View File

@ -1054,6 +1054,13 @@ H5P.QuestionSet = function (options, contentId, contentData) {
this.getCopyrights = function () {
var info = new H5P.ContentCopyrights();
// IntroPage Background
if (params.introPage !== undefined && params.introPage.backgroundImage !== undefined && params.introPage.backgroundImage.copyright !== undefined) {
var introBackground = new H5P.MediaCopyright(params.introPage.backgroundImage.copyright);
introBackground.setThumbnail(new H5P.Thumbnail(H5P.getPath(params.introPage.backgroundImage.path, contentId), params.introPage.backgroundImage.width, params.introPage.backgroundImage.height));
info.addMedia(introBackground);
}
// Background
if (params.backgroundImage !== undefined && params.backgroundImage.copyright !== undefined) {
var background = new H5P.MediaCopyright(params.backgroundImage.copyright);