Merge pull request #22 from JulianSSS/copyright-for-intropage-background
Make Questionset commit its introPage BackgroundImage to copyright-Bu…pull/26/head
commit
412b7085b2
|
@ -1054,6 +1054,13 @@ H5P.QuestionSet = function (options, contentId, contentData) {
|
||||||
this.getCopyrights = function () {
|
this.getCopyrights = function () {
|
||||||
var info = new H5P.ContentCopyrights();
|
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
|
// Background
|
||||||
if (params.backgroundImage !== undefined && params.backgroundImage.copyright !== undefined) {
|
if (params.backgroundImage !== undefined && params.backgroundImage.copyright !== undefined) {
|
||||||
var background = new H5P.MediaCopyright(params.backgroundImage.copyright);
|
var background = new H5P.MediaCopyright(params.backgroundImage.copyright);
|
||||||
|
|
Loading…
Reference in New Issue