parent
43748bc4b8
commit
9f7b545f02
|
@ -134,6 +134,7 @@ H5P.init = function (target) {
|
||||||
});
|
});
|
||||||
dialog.open();
|
dialog.open();
|
||||||
}
|
}
|
||||||
|
// If previousState is false we don't have a previous state
|
||||||
});
|
});
|
||||||
|
|
||||||
// Create new instance.
|
// Create new instance.
|
||||||
|
@ -1849,7 +1850,7 @@ H5P.createTitle = function (rawTitle, maxLength) {
|
||||||
H5PIntegration.contents = H5PIntegration.contents || {};
|
H5PIntegration.contents = H5PIntegration.contents || {};
|
||||||
var content = H5PIntegration.contents['cid-' + contentId] || {};
|
var content = H5PIntegration.contents['cid-' + contentId] || {};
|
||||||
var preloadedData = content.contentUserData;
|
var preloadedData = content.contentUserData;
|
||||||
if (preloadedData && preloadedData[subContentId] && preloadedData[subContentId][dataId]) {
|
if (preloadedData && preloadedData[subContentId] && preloadedData[subContentId][dataId] !== undefined) {
|
||||||
if (preloadedData[subContentId][dataId] === 'RESET') {
|
if (preloadedData[subContentId][dataId] === 'RESET') {
|
||||||
done(undefined, null);
|
done(undefined, null);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue