Merge branch 'MDL-73618-master' of https://github.com/ferranrecio/moodle

This commit is contained in:
Jun Pataleta 2022-01-24 18:59:15 +08:00
commit a336dfc271
3 changed files with 3 additions and 2 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -199,6 +199,7 @@ const enableButtonTooltip = (button) => {
// The jQuery is still used in Boostrap 4. It can we removed when MDL-71979 is integrated.
if (button.hasAttribute('data-original-title')) {
jQuery(button).tooltip('enable');
button.removeAttribute('title');
} else if (button.dataset.disabledToggle) {
button.dataset.toggle = button.dataset.disabledToggle;
jQuery(button).tooltip();