createH5PTitle->createTitle

semantics-font
Svein-Tore Griff With 2015-04-07 19:52:18 +02:00
parent ed23b9fff0
commit 5b55b78ded
2 changed files with 2 additions and 2 deletions

View File

@ -99,7 +99,7 @@ H5P.XAPIEvent.prototype.setObject = function(instance) {
else { else {
if (H5PIntegration && H5PIntegration.contents && H5PIntegration.contents['cid-' + instance.contentId].title) { if (H5PIntegration && H5PIntegration.contents && H5PIntegration.contents['cid-' + instance.contentId].title) {
this.data.statement.object.definition.name = { this.data.statement.object.definition.name = {
"en-US": H5P.createH5PTitle(H5PIntegration.contents['cid-' + instance.contentId].title) "en-US": H5P.createTitle(H5PIntegration.contents['cid-' + instance.contentId].title)
}; };
} }
} }

View File

@ -1491,7 +1491,7 @@ H5P.createUUID = function() {
}); });
}; };
H5P.createH5PTitle = function(rawTitle, maxLength) { H5P.createTitle = function(rawTitle, maxLength) {
if (maxLength === undefined) { if (maxLength === undefined) {
maxLength = 60; maxLength = 60;
} }