Fixed empty frame.

d6
Frode Petterson 2015-02-12 11:52:55 +01:00
parent fb77a4d20d
commit 9fc5f82b2f
1 changed files with 30 additions and 32 deletions

View File

@ -88,10 +88,6 @@ H5P.init = function () {
}); });
} }
if (contentData.disable & H5P.DISABLE_FRAME) {
$element.addClass('h5p-no-frame');
}
else {
// Create action bar // Create action bar
var $actions = H5P.jQuery('<ul class="h5p-actions"></ul>'); var $actions = H5P.jQuery('<ul class="h5p-actions"></ul>');
@ -122,6 +118,8 @@ H5P.init = function () {
if ($actions.children().length) { if ($actions.children().length) {
$actions.insertAfter($container); $actions.insertAfter($container);
} }
else {
$element.addClass('h5p-no-frame');
} }
// Keep track of when we started // Keep track of when we started