mirror of
https://github.com/moodle/moodle.git
synced 2025-03-25 01:50:55 +01:00
Merge branch 'MDL-78226-401' of https://github.com/paulholden/moodle into MOODLE_401_STABLE
This commit is contained in:
commit
90e18e28a2
2
contentbank/amd/build/sort.min.js
vendored
2
contentbank/amd/build/sort.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -65,8 +65,10 @@ const registerListenerEvents = (contentBank) => {
|
||||
});
|
||||
|
||||
const heading = fileArea.querySelector(selectors.elements.heading);
|
||||
heading.removeAttribute('role');
|
||||
heading.querySelectorAll(selectors.elements.cell).forEach(cell => cell.removeAttribute('role'));
|
||||
if (heading) {
|
||||
heading.removeAttribute('role');
|
||||
heading.querySelectorAll(selectors.elements.cell).forEach(cell => cell.removeAttribute('role'));
|
||||
}
|
||||
}
|
||||
viewGrid.classList.add('active');
|
||||
viewList.classList.remove('active');
|
||||
@ -87,8 +89,10 @@ const registerListenerEvents = (contentBank) => {
|
||||
});
|
||||
|
||||
const heading = fileArea.querySelector(selectors.elements.heading);
|
||||
heading.setAttribute('role', 'row');
|
||||
heading.querySelectorAll(selectors.elements.cell).forEach(cell => cell.setAttribute('role', 'columnheader'));
|
||||
if (heading) {
|
||||
heading.setAttribute('role', 'row');
|
||||
heading.querySelectorAll(selectors.elements.cell).forEach(cell => cell.setAttribute('role', 'columnheader'));
|
||||
}
|
||||
}
|
||||
viewList.classList.add('active');
|
||||
viewGrid.classList.remove('active');
|
||||
|
Loading…
x
Reference in New Issue
Block a user