Revert "HFP-1407 Improve robustness of content-id retrival"

This reverts commit e3d7cf2562.
pull/42/head
Paal Joergensen 2017-08-25 11:18:59 +02:00
parent e3d7cf2562
commit 0252beb03d
1 changed files with 1 additions and 2 deletions

View File

@ -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.
}