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 cef6a37111
commit 9f19c507b2
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() {