fix: prevent unintended section display during script checks

Introduced a variable to target all ".section" elements before
iterating through them to hide subsequent sections correctly if
they contain certain scripts. This ensures smoother UI operations
by preventing unintended section visibility.
This commit is contained in:
Kumi 2024-09-23 09:20:08 +02:00
parent bf9cc7445b
commit 0b5c85273d
Signed by: kumi
GPG key ID: ECBCC9082395383F

View file

@ -212,6 +212,7 @@
); );
}); });
var sections = $('.section');
sections.each(function (index) { sections.each(function (index) {
if ($(this).find('script[data-activity-id]').length > 0) { if ($(this).find('script[data-activity-id]').length > 0) {
// Hide all .section elements after this one // Hide all .section elements after this one