From e0534dd77884b30cf48d627e5422f567e37f1358 Mon Sep 17 00:00:00 2001 From: Frode Petterson Date: Thu, 7 May 2015 15:13:28 +0200 Subject: [PATCH] Fixed frame disable broken. Probably a merge gone wrong. --- js/h5p.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/js/h5p.js b/js/h5p.js index 9a9554a..01f6d25 100644 --- a/js/h5p.js +++ b/js/h5p.js @@ -146,7 +146,6 @@ H5P.init = function (target) { // Create action bar var $actions = H5P.jQuery(''); - if (!(contentData.disable & H5P.DISABLE_DOWNLOAD)) { // Add export button H5P.jQuery('
  • ' + H5P.t('download') + '
  • ').appendTo($actions).click(function () { @@ -176,7 +175,7 @@ H5P.init = function (target) { } // Insert action bar if it has any content - if ($actions.children().length) { + if (!(contentData.disable & H5P.DISABLE_FRAME) && $actions.children().length) { $actions.insertAfter($container); } else {