Revert "HFP-1407 Improve robustness of content-id retrival"
This reverts commit e3d7cf2562
.
pull/42/head
parent
e3d7cf2562
commit
0252beb03d
|
@ -501,8 +501,7 @@ H5P.fullScreen = function ($element, instance, exitCallback, body, forceSemiFull
|
|||
// We're called from an iframe.
|
||||
$body = H5P.jQuery(body);
|
||||
$classes = $body.add($element.get());
|
||||
var contentId = $element.closest('[data-content-id]').data('content-id');
|
||||
var iframeSelector = '#h5p-iframe-' + contentId;
|
||||
var iframeSelector = '#h5p-iframe-' + $element.parent().data('content-id');
|
||||
$iframe = H5P.jQuery(iframeSelector);
|
||||
$element = $iframe.parent(); // Put iframe wrapper in fullscreen, not container.
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue