Add real url to statement object
parent
378224f7c6
commit
5d32c4451c
|
@ -491,13 +491,10 @@ H5P.XAPIEvent.prototype.setVerb = function(verb) {
|
||||||
}
|
}
|
||||||
|
|
||||||
H5P.XAPIEvent.prototype.setObject = function(instance) {
|
H5P.XAPIEvent.prototype.setObject = function(instance) {
|
||||||
// TODO: Implement the correct id(url)
|
|
||||||
|
|
||||||
// Return dummy data...
|
|
||||||
this.statement.object = {
|
this.statement.object = {
|
||||||
'id': 'http://mysite.com/path-to-main-activity#sub-activity',
|
// TODO: Correct this. contentId might be vid
|
||||||
'contentId': instance.contentId,
|
'id': window.location.origin + Drupal.settings.basePath + 'node/' + instance.contentId,
|
||||||
'reference': instance
|
'contentId': instance.contentId
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue