OPPG-376: The forgotten code!

namespaces
Frode Petterson 2013-06-27 14:29:56 +02:00
parent ea9dd199aa
commit b21d129d2c
1 changed files with 6 additions and 3 deletions

View File

@ -104,9 +104,12 @@ H5P.fullScreen = function ($el, obj) {
/**
* Find the path to the content files base on the id of the content.
*/
H5P.getContentPath = function(contentId) {
// TODO: Rewrite or remove... H5P.getContentPath = H5PIntegration.getContentPath would probably work f.i.
return H5PIntegration.getContentPath(contentId);
H5P.getPath = function (path, contentId) {
if (path.substr(0, 7) === 'http://' || path.substr(0, 8) === 'https://') {
return path;
}
return H5PIntegration.getContentPath(contentId) + path;
};
//