-
Bug
-
Resolution: Duplicate
-
Low
-
None
-
4.2.1
-
None
The expand-macro.js is pulling a list of all child elements rather than just taking the first one, adding .first() to the end of the expanderContent definition resolves this and allows inner expands to behave as expected.
src:
AJS.toInit(function ($) { // preload open image // contextPath will be expanded by the cssSubstituionTransformer new Image().src = "@contextPath/images/icons/grey_arrow_down.gif"; function expand(e) { var expander = $(this), expanderIcon = $(".expand-control-icon", expander), expanderContent = $(".expand-content", expander.closest(".expand-container")).first(); if (e.type == "click" || (e.type == "keyup" && e.keyCode == 13)) { if (expanderContent.hasClass("expand-hidden")) { // open expanderContent.fadeIn("fast"); } else { // close expanderContent.fadeOut("fast") } expanderContent.toggleClass("expand-hidden"); expanderIcon.toggleClass("expanded"); } } $(".expand-control").click(expand).keyup(expand); });
- duplicates
-
CONFSERVER-24201 Ability to nest Expand macros
- Closed
- is related to
-
CONFSERVER-24201 Ability to nest Expand macros
- Closed