Make sure the contentId is set on content types
parent
1995da20bb
commit
d6db07481e
|
@ -391,6 +391,10 @@ H5P.newRunnable = function (library, contentId, $attachTo, skipResize) {
|
||||||
if (instance.$ === undefined) {
|
if (instance.$ === undefined) {
|
||||||
instance.$ = H5P.jQuery(instance);
|
instance.$ = H5P.jQuery(instance);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (instance.contentId === undefined) {
|
||||||
|
instance.conentId = contentId;
|
||||||
|
}
|
||||||
|
|
||||||
// Make xAPI events bubble
|
// Make xAPI events bubble
|
||||||
// if (parent !== null && parent.trigger !== undefined) {
|
// if (parent !== null && parent.trigger !== undefined) {
|
||||||
|
|
Loading…
Reference in New Issue