js: allow sites to disable gadjo handling of foldable sections (#85001)
gitea/gadjo/pipeline/head This commit looks good
Details
gitea/gadjo/pipeline/head This commit looks good
Details
This commit is contained in:
parent
64a43d8d30
commit
2af24283e9
|
@ -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');
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue