wiki.techinc.nl/tests/qunit
jwbth 610b9ac91c jquery.makeCollapsible: Make toggle buttons work inside cloned content
Collapsible elements may be cloned, e.g. for use in reference popups (see T362561). In this case they should keep their functionality.

This patch adds an instruction that makes sure the button element is inside the collapsible element (which it should be when no custom togglers are used, if my understanding is correct). If not, it looks for the closest `.mw-collapsible` element up in the DOM tree.

If I understand correctly, the first `actionHandler` declaration relates to the case when no custom togglers is used, so changing it won't affect the behavior with custom togglers which would require a different approach.

Bug: T362561
Change-Id: I1f8f1108a17246f16f89599025cb128ede307161
2024-04-16 03:36:34 +04:00
..
data Use $this->getServiceContainer() in tests 2023-10-17 18:40:46 +00:00
resources jquery.makeCollapsible: Make toggle buttons work inside cloned content 2024-04-16 03:36:34 +04:00
.eslintrc.json mediawiki.user: Adopt modern syntax, use nested scope for clientPrefs 2023-10-31 14:10:08 +00:00
.htaccess Update Apache config syntax in .htaccess files 2024-03-23 23:36:31 -04:00
QUnitTestResources.php ResourceLoader: Drop targets system, deprecated in 1.41 2024-01-12 16:42:38 -05:00