Skip to content

Commit

Permalink
Composer: Update h5p-core to 1.27
Browse files Browse the repository at this point in the history
  • Loading branch information
adia committed Nov 27, 2024
1 parent 6bbe277 commit 52b6659
Show file tree
Hide file tree
Showing 18 changed files with 1,961 additions and 148 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"bacon/bacon-qr-code": "^2.0",
"phpoffice/phpspreadsheet": "^3.3",
"dapphp/securimage": "dev-mantis",
"h5p/h5p-core": "<1.27",
"h5p/h5p-core": "^1.27",
"h5p/h5p-editor": "<1.26",
"snapappointments/bootstrap-select": "^1.13.18",
"jenssegers/blade": "^1.4"
Expand Down
106 changes: 51 additions & 55 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 12 additions & 5 deletions js/h5p-core/js/h5p-action-bar.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,15 @@ H5P.ActionBar = (function ($, EventDispatcher) {
var handler = function () {
self.trigger(type);
};
H5P.jQuery('<li/>', {

const $actionList = H5P.jQuery('<li/>', {
'class': 'h5p-button h5p-noselect h5p-' + (customClass ? customClass : type),
role: 'button',
appendTo: $actions
});

const $actionButton = H5P.jQuery('<button/>', {
tabindex: 0,
title: H5P.t(type + 'Description'),
'aria-label': H5P.t(type + 'Description'),
html: H5P.t(type),
on: {
click: handler,
Expand All @@ -50,9 +54,11 @@ H5P.ActionBar = (function ($, EventDispatcher) {
}
}
},
appendTo: $actions
appendTo: $actionList
});

H5P.Tooltip($actionButton.get(0));

hasActions = true;
};

Expand All @@ -69,7 +75,8 @@ H5P.ActionBar = (function ($, EventDispatcher) {
}
if (displayOptions.icon) {
// Add about H5P button icon
H5P.jQuery('<li><a class="h5p-link" href="http://h5p.org" target="_blank" title="' + H5P.t('h5pDescription') + '"></a></li>').appendTo($actions);
const $h5pLogo = H5P.jQuery('<li><a class="h5p-link" href="http://h5p.org" target="_blank" aria-label="' + H5P.t('h5pDescription') + '"></a></li>').appendTo($actions);
H5P.Tooltip($h5pLogo.find('.h5p-link').get(0));
hasActions = true;
}

Expand Down
Loading

0 comments on commit 52b6659

Please sign in to comment.