Made copyright button being shown [HFP-277]
parent
cfd6cb1e63
commit
526d7ddd7e
|
@ -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) {
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue