Made copyright button being shown [HFP-277]

improved-embed-and-download
Paal Joergensen 2016-12-16 11:30:59 +01:00
parent cfd6cb1e63
commit 526d7ddd7e
2 changed files with 3 additions and 3 deletions

View File

@ -48,7 +48,7 @@ H5P.ActionBar = (function ($, EventDispatcher) {
// Add export button // Add export button
addActionButton('download', 'export'); addActionButton('download', 'export');
} }
if (displayOptions.showCopyrights) { if (displayOptions.showCopyright) {
addActionButton('copyrights'); addActionButton('copyrights');
} }
if (displayOptions.showEmbed) { if (displayOptions.showEmbed) {

View File

@ -135,10 +135,10 @@ H5P.init = function (target) {
var displayOptions = contentData.displayOptions; var displayOptions = contentData.displayOptions;
if (displayOptions.showFrame) { if (displayOptions.showFrame) {
// Special handling of copyrights // Special handling of copyrights
if (displayOptions.showCopyrights) { if (displayOptions.showCopyright) {
var copyrights = H5P.getCopyrights(instance, library.params, contentId); var copyrights = H5P.getCopyrights(instance, library.params, contentId);
if (!copyrights) { if (!copyrights) {
displayOptions.showCopyrights = false; displayOptions.showCopyright = false;
} }
} }