Skip to content

Commit

Permalink
Merge branch 'MDL-82570-master' of https://github.com/vietlx426/moodle-1
Browse files Browse the repository at this point in the history
  • Loading branch information
HuongNV13 committed Oct 10, 2024
2 parents cd35384 + 962c9d1 commit 79c9f30
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion theme/boost/amd/build/loader.min.js

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

2 changes: 1 addition & 1 deletion theme/boost/amd/build/loader.min.js.map

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

5 changes: 4 additions & 1 deletion theme/boost/amd/src/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const enablePopovers = () => {
$('body').popover({
container: 'body',
selector: '[data-toggle="popover"]',
trigger: 'focus',
trigger: 'focus click',
whitelist: Object.assign(DefaultWhitelist, {
table: [],
thead: [],
Expand All @@ -73,6 +73,9 @@ const enablePopovers = () => {
if (e.key === 'Escape' && e.target.closest('[data-toggle="popover"]')) {
$(e.target).popover('hide');
}
if (e.key === 'Enter' && e.target.closest('[data-toggle="popover"]')) {
$(e.target).popover('show');
}
});
};

Expand Down

0 comments on commit 79c9f30

Please sign in to comment.