general: only apply accessible foldable support once (#38900)

This commit is contained in:
Frédéric Péters 2020-01-11 20:27:32 +01:00
parent fca2f06371
commit aa5099c771
1 changed files with 3 additions and 0 deletions

View File

@ -220,6 +220,9 @@ $(function() {
return;
}
var $cell_title = $cell.find('> div > h2:first-child');
if ($cell_title.attr('aria-expanded') !== undefined) { // already prepared
return;
}
$cell_title.attr('tabindex', '0');
$cell_title.attr('role', 'button');
function set_aria_expanded() {