js: allow sites to disable gadjo handling of foldable sections (#85001)
gitea/gadjo/pipeline/head This commit looks good Details

This commit is contained in:
Frédéric Péters 2023-12-21 08:53:20 +01:00
parent 64a43d8d30
commit 2af24283e9
1 changed files with 1 additions and 1 deletions

View File

@ -492,7 +492,7 @@ var gadjo_js = gadjo_js || {};
});
$(function () { /* foldable sections */
$('.section.foldable > h2, .section.foldable > h3').on('click', function() {
$('.section.foldable:not(.gadjo-foldable-ignore) > h2, .section.foldable:not(.gadjo-foldable-ignore) > h3').on('click', function() {
$(this).parent().toggleClass('folded');
});
});