general: always unfold targetted cell (#64563)

This commit is contained in:
Frédéric Péters 2022-04-26 11:18:09 +02:00
parent af51c0c20b
commit 59a9d2f352
1 changed files with 4 additions and 0 deletions

View File

@ -267,6 +267,10 @@ $(function() {
$cell_title.attr('aria-expanded', 'true');
}
}
if (document.location.hash && document.location.hash.substr(1) == $cell.attr('id')) {
// always unfold targeted cell
$cell.removeClass('folded');
}
set_aria_expanded();
$cell.find('> div > h2:first-child').on('keydown', function(ev) {
if (ev.keyCode == 13 || ev.keyCode == 32) { // enter || space